@sp-api-sdk/services-api-v1 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/cjs/api-model/api/services-api.js +0 -32
  2. package/dist/cjs/api-model/base.js +0 -19
  3. package/dist/cjs/api-model/common.js +0 -37
  4. package/dist/cjs/api-model/configuration.js +0 -17
  5. package/dist/cjs/api-model/models/capacity-type.js +0 -2
  6. package/dist/cjs/api-model/models/day-of-week.js +0 -2
  7. package/dist/es/api-model/api/services-api.js +0 -32
  8. package/dist/es/api-model/base.js +0 -19
  9. package/dist/es/api-model/common.js +0 -37
  10. package/dist/es/api-model/configuration.js +0 -17
  11. package/dist/es/api-model/models/capacity-type.js +0 -2
  12. package/dist/es/api-model/models/day-of-week.js +0 -2
  13. package/dist/types/api-model/api/services-api.d.ts +0 -187
  14. package/dist/types/api-model/base.d.ts +0 -24
  15. package/dist/types/api-model/common.d.ts +0 -37
  16. package/dist/types/api-model/configuration.d.ts +0 -17
  17. package/dist/types/api-model/models/add-appointment-request.d.ts +0 -7
  18. package/dist/types/api-model/models/address.d.ts +0 -24
  19. package/dist/types/api-model/models/appointment-resource.d.ts +0 -4
  20. package/dist/types/api-model/models/appointment-slot-report.d.ts +0 -10
  21. package/dist/types/api-model/models/appointment-slot.d.ts +0 -8
  22. package/dist/types/api-model/models/appointment-time-input.d.ts +0 -6
  23. package/dist/types/api-model/models/appointment-time.d.ts +0 -6
  24. package/dist/types/api-model/models/appointment.d.ts +0 -20
  25. package/dist/types/api-model/models/assign-appointment-resources-request.d.ts +0 -4
  26. package/dist/types/api-model/models/assign-appointment-resources-response-payload.d.ts +0 -4
  27. package/dist/types/api-model/models/assign-appointment-resources-response.d.ts +0 -9
  28. package/dist/types/api-model/models/associated-item.d.ts +0 -19
  29. package/dist/types/api-model/models/availability-record.d.ts +0 -13
  30. package/dist/types/api-model/models/buyer.d.ts +0 -10
  31. package/dist/types/api-model/models/cancel-reservation-response.d.ts +0 -4
  32. package/dist/types/api-model/models/cancel-service-job-by-service-job-id-response.d.ts +0 -4
  33. package/dist/types/api-model/models/capacity-type.d.ts +0 -2
  34. package/dist/types/api-model/models/complete-service-job-by-service-job-id-response.d.ts +0 -4
  35. package/dist/types/api-model/models/create-reservation-record.d.ts +0 -11
  36. package/dist/types/api-model/models/create-reservation-request.d.ts +0 -9
  37. package/dist/types/api-model/models/create-reservation-response.d.ts +0 -9
  38. package/dist/types/api-model/models/create-service-document-upload-destination.d.ts +0 -9
  39. package/dist/types/api-model/models/date-time-range.d.ts +0 -6
  40. package/dist/types/api-model/models/day-of-week.d.ts +0 -2
  41. package/dist/types/api-model/models/encryption-details.d.ts +0 -8
  42. package/dist/types/api-model/models/fixed-slot-capacity-errors.d.ts +0 -4
  43. package/dist/types/api-model/models/fixed-slot-capacity-query.d.ts +0 -10
  44. package/dist/types/api-model/models/fixed-slot-capacity.d.ts +0 -10
  45. package/dist/types/api-model/models/fixed-slot.d.ts +0 -12
  46. package/dist/types/api-model/models/fulfillment-document.d.ts +0 -6
  47. package/dist/types/api-model/models/fulfillment-time.d.ts +0 -6
  48. package/dist/types/api-model/models/get-appointment-slots-response.d.ts +0 -9
  49. package/dist/types/api-model/models/get-service-job-by-service-job-id-response.d.ts +0 -9
  50. package/dist/types/api-model/models/get-service-jobs-response.d.ts +0 -9
  51. package/dist/types/api-model/models/item-delivery-promise.d.ts +0 -6
  52. package/dist/types/api-model/models/item-delivery.d.ts +0 -9
  53. package/dist/types/api-model/models/job-listing.d.ts +0 -10
  54. package/dist/types/api-model/models/model-error.d.ts +0 -10
  55. package/dist/types/api-model/models/poa.d.ts +0 -15
  56. package/dist/types/api-model/models/range-capacity.d.ts +0 -9
  57. package/dist/types/api-model/models/range-slot-capacity-errors.d.ts +0 -4
  58. package/dist/types/api-model/models/range-slot-capacity-query.d.ts +0 -8
  59. package/dist/types/api-model/models/range-slot-capacity.d.ts +0 -8
  60. package/dist/types/api-model/models/range-slot.d.ts +0 -8
  61. package/dist/types/api-model/models/recurrence.d.ts +0 -8
  62. package/dist/types/api-model/models/reschedule-appointment-request.d.ts +0 -9
  63. package/dist/types/api-model/models/reservation.d.ts +0 -11
  64. package/dist/types/api-model/models/scope-of-work.d.ts +0 -10
  65. package/dist/types/api-model/models/seller.d.ts +0 -4
  66. package/dist/types/api-model/models/service-document-upload-destination.d.ts +0 -13
  67. package/dist/types/api-model/models/service-job-provider.d.ts +0 -4
  68. package/dist/types/api-model/models/service-job.d.ts +0 -45
  69. package/dist/types/api-model/models/service-location.d.ts +0 -9
  70. package/dist/types/api-model/models/service-upload-document.d.ts +0 -8
  71. package/dist/types/api-model/models/set-appointment-fulfillment-data-request.d.ts +0 -16
  72. package/dist/types/api-model/models/set-appointment-response.d.ts +0 -8
  73. package/dist/types/api-model/models/technician.d.ts +0 -6
  74. package/dist/types/api-model/models/update-reservation-record.d.ts +0 -11
  75. package/dist/types/api-model/models/update-reservation-request.d.ts +0 -9
  76. package/dist/types/api-model/models/update-reservation-response.d.ts +0 -9
  77. package/dist/types/api-model/models/update-schedule-record.d.ts +0 -11
  78. package/dist/types/api-model/models/update-schedule-request.d.ts +0 -4
  79. package/dist/types/api-model/models/update-schedule-response.d.ts +0 -6
  80. package/dist/types/api-model/models/warning.d.ts +0 -8
  81. package/package.json +25 -4
@@ -12,25 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { RequiredError } from "./base";
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export const DUMMY_BASE_URL = 'https://example.com';
20
16
  /**
21
17
  *
22
18
  * @throws {RequiredError}
23
- * @export
24
19
  */
25
20
  export const assertParamExists = function (functionName, paramName, paramValue) {
26
21
  if (paramValue === null || paramValue === undefined) {
27
22
  throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
28
23
  }
29
24
  };
30
- /**
31
- *
32
- * @export
33
- */
34
25
  export const setApiKeyToObject = async function (object, keyParamName, configuration) {
35
26
  if (configuration && configuration.apiKey) {
36
27
  const localVarApiKeyValue = typeof configuration.apiKey === 'function'
@@ -39,19 +30,11 @@ export const setApiKeyToObject = async function (object, keyParamName, configura
39
30
  object[keyParamName] = localVarApiKeyValue;
40
31
  }
41
32
  };
42
- /**
43
- *
44
- * @export
45
- */
46
33
  export const setBasicAuthToObject = function (object, configuration) {
47
34
  if (configuration && (configuration.username || configuration.password)) {
48
35
  object["auth"] = { username: configuration.username, password: configuration.password };
49
36
  }
50
37
  };
51
- /**
52
- *
53
- * @export
54
- */
55
38
  export const setBearerAuthToObject = async function (object, configuration) {
56
39
  if (configuration && configuration.accessToken) {
57
40
  const accessToken = typeof configuration.accessToken === 'function'
@@ -60,10 +43,6 @@ export const setBearerAuthToObject = async function (object, configuration) {
60
43
  object["Authorization"] = "Bearer " + accessToken;
61
44
  }
62
45
  };
63
- /**
64
- *
65
- * @export
66
- */
67
46
  export const setOAuthToObject = async function (object, name, scopes, configuration) {
68
47
  if (configuration && configuration.accessToken) {
69
48
  const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
@@ -92,19 +71,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
92
71
  }
93
72
  }
94
73
  }
95
- /**
96
- *
97
- * @export
98
- */
99
74
  export const setSearchParams = function (url, ...objects) {
100
75
  const searchParams = new URLSearchParams(url.search);
101
76
  setFlattenedQueryParams(searchParams, objects);
102
77
  url.search = searchParams.toString();
103
78
  };
104
- /**
105
- *
106
- * @export
107
- */
108
79
  export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
109
80
  const nonString = typeof value !== 'string';
110
81
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -114,17 +85,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
114
85
  ? JSON.stringify(value !== undefined ? value : {})
115
86
  : (value || "");
116
87
  };
117
- /**
118
- *
119
- * @export
120
- */
121
88
  export const toPathString = function (url) {
122
89
  return url.pathname + url.search + url.hash;
123
90
  };
124
- /**
125
- *
126
- * @export
127
- */
128
91
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
129
92
  return (axios = globalAxios, basePath = BASE_PATH) => {
130
93
  const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url };
@@ -15,49 +15,32 @@ export class Configuration {
15
15
  /**
16
16
  * parameter for apiKey security
17
17
  * @param name security name
18
- * @memberof Configuration
19
18
  */
20
19
  apiKey;
21
20
  /**
22
21
  * parameter for basic security
23
- *
24
- * @type {string}
25
- * @memberof Configuration
26
22
  */
27
23
  username;
28
24
  /**
29
25
  * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
26
  */
34
27
  password;
35
28
  /**
36
29
  * parameter for oauth2 security
37
30
  * @param name security name
38
31
  * @param scopes oauth2 scope
39
- * @memberof Configuration
40
32
  */
41
33
  accessToken;
42
34
  /**
43
35
  * override base path
44
- *
45
- * @type {string}
46
- * @memberof Configuration
47
36
  */
48
37
  basePath;
49
38
  /**
50
39
  * override server index
51
- *
52
- * @type {number}
53
- * @memberof Configuration
54
40
  */
55
41
  serverIndex;
56
42
  /**
57
43
  * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
44
  */
62
45
  baseOptions;
63
46
  /**
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * Type of capacity
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const CapacityType = {
20
18
  ScheduledCapacity: 'SCHEDULED_CAPACITY',
@@ -13,8 +13,6 @@
13
13
  */
14
14
  /**
15
15
  * The day of the week.
16
- * @export
17
- * @enum {string}
18
16
  */
19
17
  export const DayOfWeek = {
20
18
  Monday: 'MONDAY',