npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

apple_partner_services

v1.0.4

Published

Partner_Services_related_to_Repair_Consignment_Escalation_Preferences___

Downloads

1,535

Readme

partner_services

PartnerServices - JavaScript client for partner_services Partner Services related to Repair, Consignment, Escalation, Preferences... This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install partner_services --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var PartnerServices = require('partner_services');

var api = new PartnerServices.ApplecareAgreementOrderApi()
var body = new PartnerServices.OrderApplecareAgreementEligibility(); // {OrderApplecareAgreementEligibility} 
var xAppleSoldTo = "xAppleSoldTo_example"; // {String} SoldTo location ID
var xAppleShipTo = "xAppleShipTo_example"; // {String} ShipTo location ID
var xAppleAuthToken = "xAppleAuthToken_example"; // {String} User Authorization Token returned by Token generation service
var xAppleServiceVersion = "xAppleServiceVersion_example"; // {String} API version called for service requests.
var contentType = "contentType_example"; // {String} HTTP header to send service request content type. Input always requires application/json
var accept = "accept_example"; // {String} HTTP header to submit service response type. Input always requires application/json
var opts = { 
  'xAppleTraceID': "xAppleTraceID_example", // {String} Unique transaction ID for the request in UUID format. May be generated by requestor for debugging API service calls.
  'xOperatorUserID': "xOperatorUserID_example", // {String} Unique ID of the user for logging and tracking requests. This should be the ID of the user logged into the application.
  'xAppleClientLocale': "xAppleClientLocale_example", // {String} Language code to be used for responses. Supported locales: en-US, fr-FR, de-DE, es-ES, it-IT, ja-JP, ko-KR, zh-TW, zh-CN, pt-BR, ru-RU, tr-TR, th-TH, ar-AE.
  'xAppleClientTimezone': "xAppleClientTimezone_example" // {String} Service Location Timezone. Expected format is from the IANA Time Zone Database format standard, e.g. America/Los_Angeles, Europe/London. This will not convert timestamps in requests. Timezone offset must be used in request parameters.
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.appleCareAgreementEligibility(body, xAppleSoldTo, xAppleShipTo, xAppleAuthToken, xAppleServiceVersion, contentType, accept, opts, callback);

Documentation for API Endpoints

All URIs are relative to /

Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- PartnerServices.ApplecareAgreementOrderApi | appleCareAgreementEligibility | POST /order/applecare/agreementEligibility | - AppleCare Agreement Eligibility API PartnerServices.ApplecareAgreementOrderApi | appleCareAgreementQuote | POST /order/applecare/quote | - AppleCare Agreement Quote API PartnerServices.ApplecareAgreementOrderApi | appleCareOrderDetailsLookup | GET /order/applecare/details | - AppleCare Order Details Lookup API PartnerServices.ApplecareAgreementOrderApi | appleCareOrderSummaryLookup | POST /order/applecare/summary | - AppleCare Order Summary Lookup API PartnerServices.ApplecareAgreementOrderApi | createAppleCareOrder | POST /order/applecare/create | - Create AppleCare Order API PartnerServices.ApplecareAgreementOrderApi | deleteAppleCareOrder | POST /order/applecare/delete | - Delete AppleCare Order API PartnerServices.ApplecareAgreementOrderApi | updateAppleCareOrder_ | POST /order/applecare/update | - Update AppleCare Order API PartnerServices.AuthenticationApi | endSession | POST /authenticate/end-session | - End Session API PartnerServices.AuthenticationApi | testAuthenticationAPI | GET /authenticate/check | - Test Authentication API PartnerServices.AuthenticationApi | tokenAPI | POST /authenticate/token | - Token API PartnerServices.ConsignmentApi | acknowledgementConsignedDelivery | POST /consignment/delivery/acknowledge | - Acknowledgement Consigned Delivery API PartnerServices.ConsignmentApi | consignmentDecreaseOrderShipment | POST /consignment/order/shipment | - Consignment Decrease Order Shipment API PartnerServices.ConsignmentApi | consignmentDeliveryLookup | POST /consignment/delivery/lookup | - Consignment Delivery Lookup API PartnerServices.ConsignmentApi | consignmentOrderLookup | POST /consignment/order/lookup | - Consignment Order lookup API PartnerServices.ConsignmentApi | submitConsignmentDecreaseOrder | POST /consignment/order/submit | - Submit Consignment Decrease Order API PartnerServices.ConsignmentApi | validateFromConsignedStock | POST /consignment/validate | - Validate From Consigned Stock API PartnerServices.ContentApi | acknowledgeCommunication | POST /content/personalizations/save | - Acknowledge Communication API PartnerServices.ContentApi | articleContentLookup | GET /content/article | - Article Content Lookup API PartnerServices.ContentApi | articleIDLookup | POST /content/article/lookup | - Article ID Lookup API PartnerServices.ContentApi | productHierarchyLookup | GET /content/product/hierarchy | - Product Hierarchy Lookup API PartnerServices.DiagnosticsApi | diagnosticTestStatus | POST /diagnostics/status | - Diagnostic Test Status API PartnerServices.DiagnosticsApi | fetchDiagnosticCustomerReportURL | GET /diagnostics/customer-report-url | - Fetch Diagnostic Customer Report URL API PartnerServices.DiagnosticsApi | fetchDiagnosticDetails | POST /diagnostics/lookup | - Fetch Diagnostic Details API PartnerServices.DiagnosticsApi | fetchDiagnosticSuites | GET /diagnostics/suites | - Fetch Diagnostic Suites API PartnerServices.DiagnosticsApi | runDiagnosticTest | POST /diagnostics/initiate-test | - Run Diagnostic Test API PartnerServices.EscalationApi | createEscalation | POST /escalation/create | - Create Escalation API PartnerServices.EscalationApi | escalationDetailsLookup | GET /escalation/details | - Escalation Details Lookup API PartnerServices.EscalationApi | updateEscalation | POST /escalation/update | - Update Escalation API PartnerServices.GeneralApi | advancedSearch | POST /search | - Advanced Search API PartnerServices.GeneralApi | attachmentUpload1 | POST /attachment/upload-access | - Attachment Upload API PartnerServices.GeneralApi | attributeLookup | POST /attribute/lookup | - Attribute Lookup API PartnerServices.GeneralApi | documentDownloadServiceGETDocumentType | GET /document-download | - Document Download API (GET Document Type) PartnerServices.GeneralApi | documentDownloadServicePOSTDocumentType | POST /document-download | - Document Download API (POST Document Type) PartnerServices.GeneralApi | partLookup | POST /parts/summary | - Part Lookup API PartnerServices.GeneralApi | technicianLookup | POST /technician/lookup | - Technician Lookup API PartnerServices.InvoiceApi | invoiceDetailsLookup | GET /invoice/details | - Invoice Details Lookup API PartnerServices.InvoiceApi | invoiceSummaryLookup | POST /invoice/summary | - Invoice Summary Lookup API PartnerServices.RepairApi | componentIssueLookup | POST /repair/product/componentissue | - Component/Issue Lookup API PartnerServices.RepairApi | createRepair | POST /repair/create | - Create Repair API PartnerServices.RepairApi | fetchRepairEligibility | POST /repair/eligibility | - Fetch Repair Eligibility API PartnerServices.RepairApi | fetchUnitDetails1 | POST /repair/product/details | - Fetch Unit Details API PartnerServices.RepairApi | loanerReturn | POST /repair/loaner/return | - Loaner Return API PartnerServices.RepairApi | questionsLookup | POST /repair/questions | - Questions Lookup API PartnerServices.RepairApi | repairAuditLookup | GET /repair/audit | - Repair Audit Lookup API PartnerServices.RepairApi | repairDetailsLookup | GET /repair/details | - Repair Details Lookup API PartnerServices.RepairApi | repairSummaryLookup | POST /repair/summary | - Repair Summary Lookup API PartnerServices.RepairApi | serializer | POST /repair/product/serializer | - Serializer API PartnerServices.RepairApi | serializerProductLookup | POST /repair/product/serializer/lookup | - Serializer Product Lookup API PartnerServices.RepairApi | submitDraftRepair | POST /repair/draft-submit | - Submit Draft Repair API PartnerServices.RepairApi | updateRepair | POST /repair/update | - Update Repair API PartnerServices.ReservationApi | createReservation | POST /reservation/create | - Create Reservation API PartnerServices.ReservationApi | fetchAvailableSlot | GET /reservation/fetch-available-slots | - Fetch Available Slot API PartnerServices.ReservationApi | fetchReservationDetails | GET /reservation/details | - Fetch Reservation Details API PartnerServices.ReservationApi | fetchReservationSummary | POST /reservation/summary | - Fetch Reservation Summary API PartnerServices.ReservationApi | updateReservation | POST /reservation/update | - Update Reservation API PartnerServices.ReturnsApi | confirmShipment | POST /returns/confirmshipment | - Confirm Shipment API PartnerServices.ReturnsApi | manageReturns | POST /returns/manage | - Manage Returns API PartnerServices.ReturnsApi | returnsLookup | POST /returns/lookup | - Returns Lookup API PartnerServices.SchedulerAdminApi | fetchCapacity | POST /scheduleradmin/fetch-capacity | - Fetch Capacity API PartnerServices.SchedulerAdminApi | manageCapacity | POST /scheduleradmin/update-capacity | - Manage Capacity API PartnerServices.StockingOrderApi | createStockingOrder | POST /order/stocking/create | - Create Stocking Order API PartnerServices.StockingOrderApi | deleteStockingOrder | POST /order/stocking/delete | - Delete Stocking Order API PartnerServices.StockingOrderApi | stockingOrderDetailsLookup | GET /order/stocking/details | - Stocking Order Details Lookup API PartnerServices.StockingOrderApi | stockingOrderPartSummary | POST /order/stocking/parts/summary | - Stocking Order Part Summary API PartnerServices.StockingOrderApi | stockingOrderSummaryLookup | POST /order/stocking/summary | - Stocking Order Summary Lookup API PartnerServices.StockingOrderApi | updateStockingOrder | POST /order/stocking/update | - Update Stocking Order API

Documentation for Models