@digital8/lighting-illusions-ts-sdk 0.0.1014 → 0.0.1016

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.
@@ -74,7 +74,6 @@ docs/ExternalApiProvider.md
74
74
  docs/ExternalApiSyncStatus.md
75
75
  docs/GenericResponse.md
76
76
  docs/GetAllAttributeRequest.md
77
- docs/GetAllAttributeValueRequest.md
78
77
  docs/GetAllDefinitionRequest.md
79
78
  docs/GetAllDocumentRequest.md
80
79
  docs/GetAllGoogleCategoryRequest.md
@@ -385,7 +384,6 @@ src/models/ExternalApiProvider.ts
385
384
  src/models/ExternalApiSyncStatus.ts
386
385
  src/models/GenericResponse.ts
387
386
  src/models/GetAllAttributeRequest.ts
388
- src/models/GetAllAttributeValueRequest.ts
389
387
  src/models/GetAllDefinitionRequest.ts
390
388
  src/models/GetAllDocumentRequest.ts
391
389
  src/models/GetAllGoogleCategoryRequest.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.1014
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.1016
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -59,7 +59,6 @@ All URIs are relative to *http://localhost/api*
59
59
  *AttributeApi* | [**destroyAttributeValue**](docs/AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue
60
60
  *AttributeApi* | [**detachProductTypeAttribute**](docs/AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute
61
61
  *AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
62
- *AttributeApi* | [**getAllAttributeValue**](docs/AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue
63
62
  *AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
64
63
  *AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
65
64
  *AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
@@ -237,7 +236,6 @@ All URIs are relative to *http://localhost/api*
237
236
  - [ExternalApiSyncStatus](docs/ExternalApiSyncStatus.md)
238
237
  - [GenericResponse](docs/GenericResponse.md)
239
238
  - [GetAllAttributeRequest](docs/GetAllAttributeRequest.md)
240
- - [GetAllAttributeValueRequest](docs/GetAllAttributeValueRequest.md)
241
239
  - [GetAllDefinitionRequest](docs/GetAllDefinitionRequest.md)
242
240
  - [GetAllDocumentRequest](docs/GetAllDocumentRequest.md)
243
241
  - [GetAllGoogleCategoryRequest](docs/GetAllGoogleCategoryRequest.md)
@@ -470,7 +468,7 @@ and is automatically generated by the
470
468
  [OpenAPI Generator](https://openapi-generator.tech) project:
471
469
 
472
470
  - API version: `1.0.0`
473
- - Package version: `0.0.1014`
471
+ - Package version: `0.0.1016`
474
472
  - Generator version: `7.20.0`
475
473
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
476
474
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, AttributeValueResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, GetAllAttributeValueRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
13
+ import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
14
14
  export interface AttachProductTypeAttributeOperationRequest {
15
15
  attribute: number;
16
16
  attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
@@ -29,9 +29,6 @@ export interface DetachProductTypeAttributeRequest {
29
29
  export interface GetAllAttributeOperationRequest {
30
30
  getAllAttributeRequest?: GetAllAttributeRequest;
31
31
  }
32
- export interface GetAllAttributeValueOperationRequest {
33
- getAllAttributeValueRequest?: GetAllAttributeValueRequest;
34
- }
35
32
  export interface IndexAttributeOperationRequest {
36
33
  indexAttributeRequest?: IndexAttributeRequest;
37
34
  }
@@ -130,18 +127,6 @@ export declare class AttributeApi extends runtime.BaseAPI {
130
127
  * Auto-generated: getAllAttribute
131
128
  */
132
129
  getAllAttribute(requestParameters?: GetAllAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeLiteResourceArrayResponse>;
133
- /**
134
- * Creates request options for getAllAttributeValue without sending the request
135
- */
136
- getAllAttributeValueRequestOpts(requestParameters: GetAllAttributeValueOperationRequest): Promise<runtime.RequestOpts>;
137
- /**
138
- * Auto-generated: getAllAttributeValue
139
- */
140
- getAllAttributeValueRaw(requestParameters: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeValueResourceArrayResponse>>;
141
- /**
142
- * Auto-generated: getAllAttributeValue
143
- */
144
- getAllAttributeValue(requestParameters?: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeValueResourceArrayResponse>;
145
130
  /**
146
131
  * Creates request options for indexAttribute without sending the request
147
132
  */
@@ -377,64 +377,6 @@ var AttributeApi = /** @class */ (function (_super) {
377
377
  });
378
378
  });
379
379
  };
380
- /**
381
- * Creates request options for getAllAttributeValue without sending the request
382
- */
383
- AttributeApi.prototype.getAllAttributeValueRequestOpts = function (requestParameters) {
384
- return __awaiter(this, void 0, void 0, function () {
385
- var queryParameters, headerParameters, urlPath;
386
- return __generator(this, function (_a) {
387
- queryParameters = {};
388
- headerParameters = {};
389
- headerParameters['Content-Type'] = 'application/json';
390
- urlPath = "/admin-api/attribute/value/all";
391
- return [2 /*return*/, {
392
- path: urlPath,
393
- method: 'POST',
394
- headers: headerParameters,
395
- query: queryParameters,
396
- body: (0, index_1.GetAllAttributeValueRequestToJSON)(requestParameters['getAllAttributeValueRequest']),
397
- }];
398
- });
399
- });
400
- };
401
- /**
402
- * Auto-generated: getAllAttributeValue
403
- */
404
- AttributeApi.prototype.getAllAttributeValueRaw = function (requestParameters, initOverrides) {
405
- return __awaiter(this, void 0, void 0, function () {
406
- var requestOptions, response;
407
- return __generator(this, function (_a) {
408
- switch (_a.label) {
409
- case 0: return [4 /*yield*/, this.getAllAttributeValueRequestOpts(requestParameters)];
410
- case 1:
411
- requestOptions = _a.sent();
412
- return [4 /*yield*/, this.request(requestOptions, initOverrides)];
413
- case 2:
414
- response = _a.sent();
415
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AttributeValueResourceArrayResponseFromJSON)(jsonValue); })];
416
- }
417
- });
418
- });
419
- };
420
- /**
421
- * Auto-generated: getAllAttributeValue
422
- */
423
- AttributeApi.prototype.getAllAttributeValue = function () {
424
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
425
- var response;
426
- if (requestParameters === void 0) { requestParameters = {}; }
427
- return __generator(this, function (_a) {
428
- switch (_a.label) {
429
- case 0: return [4 /*yield*/, this.getAllAttributeValueRaw(requestParameters, initOverrides)];
430
- case 1:
431
- response = _a.sent();
432
- return [4 /*yield*/, response.value()];
433
- case 2: return [2 /*return*/, _a.sent()];
434
- }
435
- });
436
- });
437
- };
438
380
  /**
439
381
  * Creates request options for indexAttribute without sending the request
440
382
  */
@@ -137,6 +137,12 @@ export interface ProductChildResource {
137
137
  * @memberof ProductChildResource
138
138
  */
139
139
  netsuiteSyncStatus?: string | null;
140
+ /**
141
+ *
142
+ * @type {boolean}
143
+ * @memberof ProductChildResource
144
+ */
145
+ hasSyncedToNetsuite: boolean;
140
146
  /**
141
147
  *
142
148
  * @type {string}
@@ -58,6 +58,8 @@ function instanceOfProductChildResource(value) {
58
58
  return false;
59
59
  if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined)
60
60
  return false;
61
+ if (!('hasSyncedToNetsuite' in value) || value['hasSyncedToNetsuite'] === undefined)
62
+ return false;
61
63
  if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined)
62
64
  return false;
63
65
  if (!('newArrivalEndDate' in value) || value['newArrivalEndDate'] === undefined)
@@ -102,6 +104,7 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
102
104
  'googleStockStatus': json['googleStockStatus'],
103
105
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
104
106
  'netsuiteSyncStatus': json['netsuiteSyncStatus'] == null ? undefined : json['netsuiteSyncStatus'],
107
+ 'hasSyncedToNetsuite': json['hasSyncedToNetsuite'],
105
108
  'newArrivalStartDate': json['newArrivalStartDate'],
106
109
  'newArrivalEndDate': json['newArrivalEndDate'],
107
110
  'isDisabled': json['isDisabled'],
@@ -140,6 +143,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
140
143
  'googleStockStatus': value['googleStockStatus'],
141
144
  'netsuiteId': value['netsuiteId'],
142
145
  'netsuiteSyncStatus': value['netsuiteSyncStatus'],
146
+ 'hasSyncedToNetsuite': value['hasSyncedToNetsuite'],
143
147
  'newArrivalStartDate': value['newArrivalStartDate'],
144
148
  'newArrivalEndDate': value['newArrivalEndDate'],
145
149
  'isDisabled': value['isDisabled'],
@@ -90,6 +90,12 @@ export interface StoreProductChildRequest {
90
90
  * @memberof StoreProductChildRequest
91
91
  */
92
92
  isOversized: boolean;
93
+ /**
94
+ *
95
+ * @type {number}
96
+ * @memberof StoreProductChildRequest
97
+ */
98
+ netsuiteId?: number;
93
99
  /**
94
100
  *
95
101
  * @type {number}
@@ -71,6 +71,7 @@ function StoreProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
71
71
  'excludeFromSearch': json['exclude_from_search'],
72
72
  'allowOversell': json['allow_oversell'],
73
73
  'isOversized': json['is_oversized'],
74
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
74
75
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
75
76
  'stock': json['stock'],
76
77
  'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
@@ -101,6 +102,7 @@ function StoreProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
101
102
  'exclude_from_search': value['excludeFromSearch'],
102
103
  'allow_oversell': value['allowOversell'],
103
104
  'is_oversized': value['isOversized'],
105
+ 'netsuite_id': value['netsuiteId'],
104
106
  'popularity_score': value['popularityScore'],
105
107
  'stock': value['stock'],
106
108
  'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
@@ -83,6 +83,12 @@ export interface UpdateProductChildRequest {
83
83
  * @memberof UpdateProductChildRequest
84
84
  */
85
85
  isOversized: boolean;
86
+ /**
87
+ *
88
+ * @type {number}
89
+ * @memberof UpdateProductChildRequest
90
+ */
91
+ netsuiteId?: number;
86
92
  /**
87
93
  *
88
94
  * @type {number}
@@ -67,6 +67,7 @@ function UpdateProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
67
67
  'excludeFromSearch': json['exclude_from_search'],
68
68
  'allowOversell': json['allow_oversell'],
69
69
  'isOversized': json['is_oversized'],
70
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
70
71
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
71
72
  'stock': json['stock'],
72
73
  'sites': (json['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerFromJSON)),
@@ -94,6 +95,7 @@ function UpdateProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
94
95
  'exclude_from_search': value['excludeFromSearch'],
95
96
  'allow_oversell': value['allowOversell'],
96
97
  'is_oversized': value['isOversized'],
98
+ 'netsuite_id': value['netsuiteId'],
97
99
  'popularity_score': value['popularityScore'],
98
100
  'stock': value['stock'],
99
101
  'sites': (value['sites'].map(StoreProductChildRequestSitesInner_1.StoreProductChildRequestSitesInnerToJSON)),
@@ -65,7 +65,6 @@ export * from './ExternalApiProvider';
65
65
  export * from './ExternalApiSyncStatus';
66
66
  export * from './GenericResponse';
67
67
  export * from './GetAllAttributeRequest';
68
- export * from './GetAllAttributeValueRequest';
69
68
  export * from './GetAllDefinitionRequest';
70
69
  export * from './GetAllDocumentRequest';
71
70
  export * from './GetAllGoogleCategoryRequest';
@@ -83,7 +83,6 @@ __exportStar(require("./ExternalApiProvider"), exports);
83
83
  __exportStar(require("./ExternalApiSyncStatus"), exports);
84
84
  __exportStar(require("./GenericResponse"), exports);
85
85
  __exportStar(require("./GetAllAttributeRequest"), exports);
86
- __exportStar(require("./GetAllAttributeValueRequest"), exports);
87
86
  __exportStar(require("./GetAllDefinitionRequest"), exports);
88
87
  __exportStar(require("./GetAllDocumentRequest"), exports);
89
88
  __exportStar(require("./GetAllGoogleCategoryRequest"), exports);
@@ -9,7 +9,6 @@ All URIs are relative to *http://localhost/api*
9
9
  | [**destroyAttributeValue**](AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue |
10
10
  | [**detachProductTypeAttribute**](AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute |
11
11
  | [**getAllAttribute**](AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute |
12
- | [**getAllAttributeValue**](AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue |
13
12
  | [**indexAttribute**](AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute |
14
13
  | [**indexAttributeValue**](AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue |
15
14
  | [**showAttribute**](AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute |
@@ -357,71 +356,6 @@ No authorization required
357
356
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
358
357
 
359
358
 
360
- ## getAllAttributeValue
361
-
362
- > AttributeValueResourceArrayResponse getAllAttributeValue(getAllAttributeValueRequest)
363
-
364
- Auto-generated: getAllAttributeValue
365
-
366
- ### Example
367
-
368
- ```ts
369
- import {
370
- Configuration,
371
- AttributeApi,
372
- } from '@digital8/lighting-illusions-ts-sdk';
373
- import type { GetAllAttributeValueOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
374
-
375
- async function example() {
376
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
377
- const api = new AttributeApi();
378
-
379
- const body = {
380
- // GetAllAttributeValueRequest (optional)
381
- getAllAttributeValueRequest: ...,
382
- } satisfies GetAllAttributeValueOperationRequest;
383
-
384
- try {
385
- const data = await api.getAllAttributeValue(body);
386
- console.log(data);
387
- } catch (error) {
388
- console.error(error);
389
- }
390
- }
391
-
392
- // Run the test
393
- example().catch(console.error);
394
- ```
395
-
396
- ### Parameters
397
-
398
-
399
- | Name | Type | Description | Notes |
400
- |------------- | ------------- | ------------- | -------------|
401
- | **getAllAttributeValueRequest** | [GetAllAttributeValueRequest](GetAllAttributeValueRequest.md) | | [Optional] |
402
-
403
- ### Return type
404
-
405
- [**AttributeValueResourceArrayResponse**](AttributeValueResourceArrayResponse.md)
406
-
407
- ### Authorization
408
-
409
- No authorization required
410
-
411
- ### HTTP request headers
412
-
413
- - **Content-Type**: `application/json`
414
- - **Accept**: `application/json`
415
-
416
-
417
- ### HTTP response details
418
- | Status code | Description | Response headers |
419
- |-------------|-------------|------------------|
420
- | **200** | Successful resource response | - |
421
-
422
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
423
-
424
-
425
359
  ## indexAttribute
426
360
 
427
361
  > PaginatedAttributeListResourceResponse indexAttribute(indexAttributeRequest)
@@ -26,6 +26,7 @@ Name | Type
26
26
  `googleStockStatus` | number
27
27
  `netsuiteId` | string
28
28
  `netsuiteSyncStatus` | string
29
+ `hasSyncedToNetsuite` | boolean
29
30
  `newArrivalStartDate` | string
30
31
  `newArrivalEndDate` | string
31
32
  `isDisabled` | boolean
@@ -61,6 +62,7 @@ const example = {
61
62
  "googleStockStatus": null,
62
63
  "netsuiteId": null,
63
64
  "netsuiteSyncStatus": null,
65
+ "hasSyncedToNetsuite": null,
64
66
  "newArrivalStartDate": null,
65
67
  "newArrivalEndDate": null,
66
68
  "isDisabled": null,
@@ -18,6 +18,7 @@ Name | Type
18
18
  `excludeFromSearch` | boolean
19
19
  `allowOversell` | boolean
20
20
  `isOversized` | boolean
21
+ `netsuiteId` | number
21
22
  `popularityScore` | number
22
23
  `stock` | number
23
24
  `sites` | [Array&lt;StoreProductChildRequestSitesInner&gt;](StoreProductChildRequestSitesInner.md)
@@ -45,6 +46,7 @@ const example = {
45
46
  "excludeFromSearch": null,
46
47
  "allowOversell": null,
47
48
  "isOversized": null,
49
+ "netsuiteId": null,
48
50
  "popularityScore": null,
49
51
  "stock": null,
50
52
  "sites": null,
@@ -17,6 +17,7 @@ Name | Type
17
17
  `excludeFromSearch` | boolean
18
18
  `allowOversell` | boolean
19
19
  `isOversized` | boolean
20
+ `netsuiteId` | number
20
21
  `popularityScore` | number
21
22
  `stock` | number
22
23
  `sites` | [Array&lt;StoreProductChildRequestSitesInner&gt;](StoreProductChildRequestSitesInner.md)
@@ -41,6 +42,7 @@ const example = {
41
42
  "excludeFromSearch": null,
42
43
  "allowOversell": null,
43
44
  "isOversized": null,
45
+ "netsuiteId": null,
44
46
  "popularityScore": null,
45
47
  "stock": null,
46
48
  "sites": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.1014",
3
+ "version": "0.0.1016",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -19,11 +19,9 @@ import type {
19
19
  AttributeLiteResourceArrayResponse,
20
20
  AttributeResource,
21
21
  AttributeResourceArrayResponse,
22
- AttributeValueResourceArrayResponse,
23
22
  DestroyAttributeValueRequest,
24
23
  GenericResponse,
25
24
  GetAllAttributeRequest,
26
- GetAllAttributeValueRequest,
27
25
  IndexAttributeRequest,
28
26
  IndexAttributeValueRequest,
29
27
  ModelAttributeResourceArrayResponse,
@@ -45,16 +43,12 @@ import {
45
43
  AttributeResourceToJSON,
46
44
  AttributeResourceArrayResponseFromJSON,
47
45
  AttributeResourceArrayResponseToJSON,
48
- AttributeValueResourceArrayResponseFromJSON,
49
- AttributeValueResourceArrayResponseToJSON,
50
46
  DestroyAttributeValueRequestFromJSON,
51
47
  DestroyAttributeValueRequestToJSON,
52
48
  GenericResponseFromJSON,
53
49
  GenericResponseToJSON,
54
50
  GetAllAttributeRequestFromJSON,
55
51
  GetAllAttributeRequestToJSON,
56
- GetAllAttributeValueRequestFromJSON,
57
- GetAllAttributeValueRequestToJSON,
58
52
  IndexAttributeRequestFromJSON,
59
53
  IndexAttributeRequestToJSON,
60
54
  IndexAttributeValueRequestFromJSON,
@@ -102,10 +96,6 @@ export interface GetAllAttributeOperationRequest {
102
96
  getAllAttributeRequest?: GetAllAttributeRequest;
103
97
  }
104
98
 
105
- export interface GetAllAttributeValueOperationRequest {
106
- getAllAttributeValueRequest?: GetAllAttributeValueRequest;
107
- }
108
-
109
99
  export interface IndexAttributeOperationRequest {
110
100
  indexAttributeRequest?: IndexAttributeRequest;
111
101
  }
@@ -389,46 +379,6 @@ export class AttributeApi extends runtime.BaseAPI {
389
379
  return await response.value();
390
380
  }
391
381
 
392
- /**
393
- * Creates request options for getAllAttributeValue without sending the request
394
- */
395
- async getAllAttributeValueRequestOpts(requestParameters: GetAllAttributeValueOperationRequest): Promise<runtime.RequestOpts> {
396
- const queryParameters: any = {};
397
-
398
- const headerParameters: runtime.HTTPHeaders = {};
399
-
400
- headerParameters['Content-Type'] = 'application/json';
401
-
402
-
403
- let urlPath = `/admin-api/attribute/value/all`;
404
-
405
- return {
406
- path: urlPath,
407
- method: 'POST',
408
- headers: headerParameters,
409
- query: queryParameters,
410
- body: GetAllAttributeValueRequestToJSON(requestParameters['getAllAttributeValueRequest']),
411
- };
412
- }
413
-
414
- /**
415
- * Auto-generated: getAllAttributeValue
416
- */
417
- async getAllAttributeValueRaw(requestParameters: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeValueResourceArrayResponse>> {
418
- const requestOptions = await this.getAllAttributeValueRequestOpts(requestParameters);
419
- const response = await this.request(requestOptions, initOverrides);
420
-
421
- return new runtime.JSONApiResponse(response, (jsonValue) => AttributeValueResourceArrayResponseFromJSON(jsonValue));
422
- }
423
-
424
- /**
425
- * Auto-generated: getAllAttributeValue
426
- */
427
- async getAllAttributeValue(requestParameters: GetAllAttributeValueOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeValueResourceArrayResponse> {
428
- const response = await this.getAllAttributeValueRaw(requestParameters, initOverrides);
429
- return await response.value();
430
- }
431
-
432
382
  /**
433
383
  * Creates request options for indexAttribute without sending the request
434
384
  */
@@ -154,6 +154,12 @@ export interface ProductChildResource {
154
154
  * @memberof ProductChildResource
155
155
  */
156
156
  netsuiteSyncStatus?: string | null;
157
+ /**
158
+ *
159
+ * @type {boolean}
160
+ * @memberof ProductChildResource
161
+ */
162
+ hasSyncedToNetsuite: boolean;
157
163
  /**
158
164
  *
159
165
  * @type {string}
@@ -219,6 +225,7 @@ export function instanceOfProductChildResource(value: object): value is ProductC
219
225
  if (!('isBundle' in value) || value['isBundle'] === undefined) return false;
220
226
  if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined) return false;
221
227
  if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined) return false;
228
+ if (!('hasSyncedToNetsuite' in value) || value['hasSyncedToNetsuite'] === undefined) return false;
222
229
  if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined) return false;
223
230
  if (!('newArrivalEndDate' in value) || value['newArrivalEndDate'] === undefined) return false;
224
231
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
@@ -259,6 +266,7 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
259
266
  'googleStockStatus': json['googleStockStatus'],
260
267
  'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
261
268
  'netsuiteSyncStatus': json['netsuiteSyncStatus'] == null ? undefined : json['netsuiteSyncStatus'],
269
+ 'hasSyncedToNetsuite': json['hasSyncedToNetsuite'],
262
270
  'newArrivalStartDate': json['newArrivalStartDate'],
263
271
  'newArrivalEndDate': json['newArrivalEndDate'],
264
272
  'isDisabled': json['isDisabled'],
@@ -300,6 +308,7 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
300
308
  'googleStockStatus': value['googleStockStatus'],
301
309
  'netsuiteId': value['netsuiteId'],
302
310
  'netsuiteSyncStatus': value['netsuiteSyncStatus'],
311
+ 'hasSyncedToNetsuite': value['hasSyncedToNetsuite'],
303
312
  'newArrivalStartDate': value['newArrivalStartDate'],
304
313
  'newArrivalEndDate': value['newArrivalEndDate'],
305
314
  'isDisabled': value['isDisabled'],
@@ -113,6 +113,12 @@ export interface StoreProductChildRequest {
113
113
  * @memberof StoreProductChildRequest
114
114
  */
115
115
  isOversized: boolean;
116
+ /**
117
+ *
118
+ * @type {number}
119
+ * @memberof StoreProductChildRequest
120
+ */
121
+ netsuiteId?: number;
116
122
  /**
117
123
  *
118
124
  * @type {number}
@@ -198,6 +204,7 @@ export function StoreProductChildRequestFromJSONTyped(json: any, ignoreDiscrimin
198
204
  'excludeFromSearch': json['exclude_from_search'],
199
205
  'allowOversell': json['allow_oversell'],
200
206
  'isOversized': json['is_oversized'],
207
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
201
208
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
202
209
  'stock': json['stock'],
203
210
  'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
@@ -231,6 +238,7 @@ export function StoreProductChildRequestToJSONTyped(value?: StoreProductChildReq
231
238
  'exclude_from_search': value['excludeFromSearch'],
232
239
  'allow_oversell': value['allowOversell'],
233
240
  'is_oversized': value['isOversized'],
241
+ 'netsuite_id': value['netsuiteId'],
234
242
  'popularity_score': value['popularityScore'],
235
243
  'stock': value['stock'],
236
244
  'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
@@ -100,6 +100,12 @@ export interface UpdateProductChildRequest {
100
100
  * @memberof UpdateProductChildRequest
101
101
  */
102
102
  isOversized: boolean;
103
+ /**
104
+ *
105
+ * @type {number}
106
+ * @memberof UpdateProductChildRequest
107
+ */
108
+ netsuiteId?: number;
103
109
  /**
104
110
  *
105
111
  * @type {number}
@@ -171,6 +177,7 @@ export function UpdateProductChildRequestFromJSONTyped(json: any, ignoreDiscrimi
171
177
  'excludeFromSearch': json['exclude_from_search'],
172
178
  'allowOversell': json['allow_oversell'],
173
179
  'isOversized': json['is_oversized'],
180
+ 'netsuiteId': json['netsuite_id'] == null ? undefined : json['netsuite_id'],
174
181
  'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
175
182
  'stock': json['stock'],
176
183
  'sites': ((json['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerFromJSON)),
@@ -201,6 +208,7 @@ export function UpdateProductChildRequestToJSONTyped(value?: UpdateProductChildR
201
208
  'exclude_from_search': value['excludeFromSearch'],
202
209
  'allow_oversell': value['allowOversell'],
203
210
  'is_oversized': value['isOversized'],
211
+ 'netsuite_id': value['netsuiteId'],
204
212
  'popularity_score': value['popularityScore'],
205
213
  'stock': value['stock'],
206
214
  'sites': ((value['sites'] as Array<any>).map(StoreProductChildRequestSitesInnerToJSON)),
@@ -67,7 +67,6 @@ export * from './ExternalApiProvider';
67
67
  export * from './ExternalApiSyncStatus';
68
68
  export * from './GenericResponse';
69
69
  export * from './GetAllAttributeRequest';
70
- export * from './GetAllAttributeValueRequest';
71
70
  export * from './GetAllDefinitionRequest';
72
71
  export * from './GetAllDocumentRequest';
73
72
  export * from './GetAllGoogleCategoryRequest';
@@ -1,93 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface GetAllAttributeValueRequest
16
- */
17
- export interface GetAllAttributeValueRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof GetAllAttributeValueRequest
22
- */
23
- search?: string;
24
- /**
25
- *
26
- * @type {GetAllAttributeValueRequestSortByEnum}
27
- * @memberof GetAllAttributeValueRequest
28
- */
29
- sortBy?: GetAllAttributeValueRequestSortByEnum;
30
- /**
31
- *
32
- * @type {GetAllAttributeValueRequestSortDirectionEnum}
33
- * @memberof GetAllAttributeValueRequest
34
- */
35
- sortDirection?: GetAllAttributeValueRequestSortDirectionEnum;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof GetAllAttributeValueRequest
40
- */
41
- relatedId?: number;
42
- /**
43
- *
44
- * @type {GetAllAttributeValueRequestRelatedTypeEnum}
45
- * @memberof GetAllAttributeValueRequest
46
- */
47
- relatedType?: GetAllAttributeValueRequestRelatedTypeEnum;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof GetAllAttributeValueRequest
52
- */
53
- includesRelations?: boolean;
54
- /**
55
- *
56
- * @type {Array<string>}
57
- * @memberof GetAllAttributeValueRequest
58
- */
59
- attributeId?: Array<string>;
60
- }
61
- /**
62
- * @export
63
- */
64
- export declare const GetAllAttributeValueRequestSortByEnum: {
65
- readonly Id: "id";
66
- readonly Value: "value";
67
- readonly CreatedAt: "created_at";
68
- readonly UpdatedAt: "updated_at";
69
- };
70
- export type GetAllAttributeValueRequestSortByEnum = typeof GetAllAttributeValueRequestSortByEnum[keyof typeof GetAllAttributeValueRequestSortByEnum];
71
- /**
72
- * @export
73
- */
74
- export declare const GetAllAttributeValueRequestSortDirectionEnum: {
75
- readonly Asc: "asc";
76
- readonly Desc: "desc";
77
- };
78
- export type GetAllAttributeValueRequestSortDirectionEnum = typeof GetAllAttributeValueRequestSortDirectionEnum[keyof typeof GetAllAttributeValueRequestSortDirectionEnum];
79
- /**
80
- * @export
81
- */
82
- export declare const GetAllAttributeValueRequestRelatedTypeEnum: {
83
- readonly Attribute: "attribute";
84
- };
85
- export type GetAllAttributeValueRequestRelatedTypeEnum = typeof GetAllAttributeValueRequestRelatedTypeEnum[keyof typeof GetAllAttributeValueRequestRelatedTypeEnum];
86
- /**
87
- * Check if a given object implements the GetAllAttributeValueRequest interface.
88
- */
89
- export declare function instanceOfGetAllAttributeValueRequest(value: object): value is GetAllAttributeValueRequest;
90
- export declare function GetAllAttributeValueRequestFromJSON(json: any): GetAllAttributeValueRequest;
91
- export declare function GetAllAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAttributeValueRequest;
92
- export declare function GetAllAttributeValueRequestToJSON(json: any): GetAllAttributeValueRequest;
93
- export declare function GetAllAttributeValueRequestToJSONTyped(value?: GetAllAttributeValueRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,84 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetAllAttributeValueRequestRelatedTypeEnum = exports.GetAllAttributeValueRequestSortDirectionEnum = exports.GetAllAttributeValueRequestSortByEnum = void 0;
17
- exports.instanceOfGetAllAttributeValueRequest = instanceOfGetAllAttributeValueRequest;
18
- exports.GetAllAttributeValueRequestFromJSON = GetAllAttributeValueRequestFromJSON;
19
- exports.GetAllAttributeValueRequestFromJSONTyped = GetAllAttributeValueRequestFromJSONTyped;
20
- exports.GetAllAttributeValueRequestToJSON = GetAllAttributeValueRequestToJSON;
21
- exports.GetAllAttributeValueRequestToJSONTyped = GetAllAttributeValueRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.GetAllAttributeValueRequestSortByEnum = {
26
- Id: 'id',
27
- Value: 'value',
28
- CreatedAt: 'created_at',
29
- UpdatedAt: 'updated_at'
30
- };
31
- /**
32
- * @export
33
- */
34
- exports.GetAllAttributeValueRequestSortDirectionEnum = {
35
- Asc: 'asc',
36
- Desc: 'desc'
37
- };
38
- /**
39
- * @export
40
- */
41
- exports.GetAllAttributeValueRequestRelatedTypeEnum = {
42
- Attribute: 'attribute'
43
- };
44
- /**
45
- * Check if a given object implements the GetAllAttributeValueRequest interface.
46
- */
47
- function instanceOfGetAllAttributeValueRequest(value) {
48
- return true;
49
- }
50
- function GetAllAttributeValueRequestFromJSON(json) {
51
- return GetAllAttributeValueRequestFromJSONTyped(json, false);
52
- }
53
- function GetAllAttributeValueRequestFromJSONTyped(json, ignoreDiscriminator) {
54
- if (json == null) {
55
- return json;
56
- }
57
- return {
58
- 'search': json['search'] == null ? undefined : json['search'],
59
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
60
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
61
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
62
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
63
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
64
- 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
65
- };
66
- }
67
- function GetAllAttributeValueRequestToJSON(json) {
68
- return GetAllAttributeValueRequestToJSONTyped(json, false);
69
- }
70
- function GetAllAttributeValueRequestToJSONTyped(value, ignoreDiscriminator) {
71
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
- if (value == null) {
73
- return value;
74
- }
75
- return {
76
- 'search': value['search'],
77
- 'sortBy': value['sortBy'],
78
- 'sortDirection': value['sortDirection'],
79
- 'related_id': value['relatedId'],
80
- 'related_type': value['relatedType'],
81
- 'includes_relations': value['includesRelations'],
82
- 'attribute_id': value['attributeId'],
83
- };
84
- }
@@ -1,46 +0,0 @@
1
-
2
- # GetAllAttributeValueRequest
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `search` | string
10
- `sortBy` | string
11
- `sortDirection` | string
12
- `relatedId` | number
13
- `relatedType` | string
14
- `includesRelations` | boolean
15
- `attributeId` | Array&lt;string&gt;
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import type { GetAllAttributeValueRequest } from '@digital8/lighting-illusions-ts-sdk'
21
-
22
- // TODO: Update the object below with actual values
23
- const example = {
24
- "search": null,
25
- "sortBy": null,
26
- "sortDirection": null,
27
- "relatedId": null,
28
- "relatedType": null,
29
- "includesRelations": null,
30
- "attributeId": null,
31
- } satisfies GetAllAttributeValueRequest
32
-
33
- console.log(example)
34
-
35
- // Convert the instance to a JSON string
36
- const exampleJSON: string = JSON.stringify(example)
37
- console.log(exampleJSON)
38
-
39
- // Parse the JSON string back to an object
40
- const exampleParsed = JSON.parse(exampleJSON) as GetAllAttributeValueRequest
41
- console.log(exampleParsed)
42
- ```
43
-
44
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
-
46
-
@@ -1,143 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface GetAllAttributeValueRequest
20
- */
21
- export interface GetAllAttributeValueRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof GetAllAttributeValueRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {GetAllAttributeValueRequestSortByEnum}
31
- * @memberof GetAllAttributeValueRequest
32
- */
33
- sortBy?: GetAllAttributeValueRequestSortByEnum;
34
- /**
35
- *
36
- * @type {GetAllAttributeValueRequestSortDirectionEnum}
37
- * @memberof GetAllAttributeValueRequest
38
- */
39
- sortDirection?: GetAllAttributeValueRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof GetAllAttributeValueRequest
44
- */
45
- relatedId?: number;
46
- /**
47
- *
48
- * @type {GetAllAttributeValueRequestRelatedTypeEnum}
49
- * @memberof GetAllAttributeValueRequest
50
- */
51
- relatedType?: GetAllAttributeValueRequestRelatedTypeEnum;
52
- /**
53
- *
54
- * @type {boolean}
55
- * @memberof GetAllAttributeValueRequest
56
- */
57
- includesRelations?: boolean;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof GetAllAttributeValueRequest
62
- */
63
- attributeId?: Array<string>;
64
- }
65
-
66
-
67
- /**
68
- * @export
69
- */
70
- export const GetAllAttributeValueRequestSortByEnum = {
71
- Id: 'id',
72
- Value: 'value',
73
- CreatedAt: 'created_at',
74
- UpdatedAt: 'updated_at'
75
- } as const;
76
- export type GetAllAttributeValueRequestSortByEnum = typeof GetAllAttributeValueRequestSortByEnum[keyof typeof GetAllAttributeValueRequestSortByEnum];
77
-
78
- /**
79
- * @export
80
- */
81
- export const GetAllAttributeValueRequestSortDirectionEnum = {
82
- Asc: 'asc',
83
- Desc: 'desc'
84
- } as const;
85
- export type GetAllAttributeValueRequestSortDirectionEnum = typeof GetAllAttributeValueRequestSortDirectionEnum[keyof typeof GetAllAttributeValueRequestSortDirectionEnum];
86
-
87
- /**
88
- * @export
89
- */
90
- export const GetAllAttributeValueRequestRelatedTypeEnum = {
91
- Attribute: 'attribute'
92
- } as const;
93
- export type GetAllAttributeValueRequestRelatedTypeEnum = typeof GetAllAttributeValueRequestRelatedTypeEnum[keyof typeof GetAllAttributeValueRequestRelatedTypeEnum];
94
-
95
-
96
- /**
97
- * Check if a given object implements the GetAllAttributeValueRequest interface.
98
- */
99
- export function instanceOfGetAllAttributeValueRequest(value: object): value is GetAllAttributeValueRequest {
100
- return true;
101
- }
102
-
103
- export function GetAllAttributeValueRequestFromJSON(json: any): GetAllAttributeValueRequest {
104
- return GetAllAttributeValueRequestFromJSONTyped(json, false);
105
- }
106
-
107
- export function GetAllAttributeValueRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllAttributeValueRequest {
108
- if (json == null) {
109
- return json;
110
- }
111
- return {
112
-
113
- 'search': json['search'] == null ? undefined : json['search'],
114
- 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
115
- 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
116
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
117
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
118
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
119
- 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
120
- };
121
- }
122
-
123
- export function GetAllAttributeValueRequestToJSON(json: any): GetAllAttributeValueRequest {
124
- return GetAllAttributeValueRequestToJSONTyped(json, false);
125
- }
126
-
127
- export function GetAllAttributeValueRequestToJSONTyped(value?: GetAllAttributeValueRequest | null, ignoreDiscriminator: boolean = false): any {
128
- if (value == null) {
129
- return value;
130
- }
131
-
132
- return {
133
-
134
- 'search': value['search'],
135
- 'sortBy': value['sortBy'],
136
- 'sortDirection': value['sortDirection'],
137
- 'related_id': value['relatedId'],
138
- 'related_type': value['relatedType'],
139
- 'includes_relations': value['includesRelations'],
140
- 'attribute_id': value['attributeId'],
141
- };
142
- }
143
-