@digital8/lighting-illusions-ts-sdk 0.0.438 → 0.0.440

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.
@@ -43,6 +43,7 @@ docs/IndexSupplierRequest.md
43
43
  docs/IndexTagRequest.md
44
44
  docs/LinkAssetsOverlayTemplateRequest.md
45
45
  docs/LinkAttributeProductTypeRequest.md
46
+ docs/LinkProductChildrenTagRequest.md
46
47
  docs/LinkProductTypeAttributeRequest.md
47
48
  docs/ModelAttributeResource.md
48
49
  docs/ModelAttributeResourceArrayResponse.md
@@ -209,6 +210,7 @@ src/models/IndexSupplierRequest.ts
209
210
  src/models/IndexTagRequest.ts
210
211
  src/models/LinkAssetsOverlayTemplateRequest.ts
211
212
  src/models/LinkAttributeProductTypeRequest.ts
213
+ src/models/LinkProductChildrenTagRequest.ts
212
214
  src/models/LinkProductTypeAttributeRequest.ts
213
215
  src/models/ModelAttributeResource.ts
214
216
  src/models/ModelAttributeResourceArrayResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @digital8/lighting-illusions-ts-sdk@0.0.438
1
+ # @digital8/lighting-illusions-ts-sdk@0.0.440
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -118,9 +118,12 @@ All URIs are relative to *http://localhost/api*
118
118
  *SupplierApi* | [**updateSupplier**](docs/SupplierApi.md#updatesupplieroperation) | **PUT** /admin-api/supplier/{supplier}/update | Auto-generated: updateSupplier
119
119
  *TagApi* | [**destroyTag**](docs/TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag
120
120
  *TagApi* | [**getAllTag**](docs/TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag
121
+ *TagApi* | [**getProductsTag**](docs/TagApi.md#getproductstag) | **GET** /admin-api/tag/{tag}/products | Auto-generated: getProductsTag
121
122
  *TagApi* | [**indexTag**](docs/TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag
123
+ *TagApi* | [**linkProductChildrenTag**](docs/TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag
122
124
  *TagApi* | [**showTag**](docs/TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag
123
125
  *TagApi* | [**storeTag**](docs/TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag
126
+ *TagApi* | [**unlinkProductChildTag**](docs/TagApi.md#unlinkproductchildtag) | **POST** /admin-api/tag/{tag}/remove-product-child/{productChild} | Auto-generated: unlinkProductChildTag
124
127
  *TagApi* | [**updateTag**](docs/TagApi.md#updatetagoperation) | **PUT** /admin-api/tag/{tag}/update | Auto-generated: updateTag
125
128
 
126
129
 
@@ -164,6 +167,7 @@ All URIs are relative to *http://localhost/api*
164
167
  - [IndexTagRequest](docs/IndexTagRequest.md)
165
168
  - [LinkAssetsOverlayTemplateRequest](docs/LinkAssetsOverlayTemplateRequest.md)
166
169
  - [LinkAttributeProductTypeRequest](docs/LinkAttributeProductTypeRequest.md)
170
+ - [LinkProductChildrenTagRequest](docs/LinkProductChildrenTagRequest.md)
167
171
  - [LinkProductTypeAttributeRequest](docs/LinkProductTypeAttributeRequest.md)
168
172
  - [ModelAttributeResource](docs/ModelAttributeResource.md)
169
173
  - [ModelAttributeResourceArrayResponse](docs/ModelAttributeResourceArrayResponse.md)
@@ -287,7 +291,7 @@ and is automatically generated by the
287
291
  [OpenAPI Generator](https://openapi-generator.tech) project:
288
292
 
289
293
  - API version: `1.0.0`
290
- - Package version: `0.0.438`
294
+ - Package version: `0.0.440`
291
295
  - Generator version: `7.17.0`
292
296
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
293
297
 
@@ -10,22 +10,33 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GenericResponse, IndexTagRequest, PaginatedTagResourceResponse, StoreTagRequest, TagLiteResourceArrayResponse, TagResource, UpdateTagRequest } from '../models/index';
13
+ import type { GenericResponse, IndexTagRequest, LinkProductChildrenTagRequest, PaginatedTagResourceResponse, ProductChildRelationResourceArrayResponse, StoreTagRequest, TagLiteResourceArrayResponse, TagResource, UpdateTagRequest } from '../models/index';
14
14
  export interface DestroyTagRequest {
15
15
  tag: number;
16
16
  }
17
17
  export interface GetAllTagRequest {
18
18
  indexTagRequest?: IndexTagRequest;
19
19
  }
20
+ export interface GetProductsTagRequest {
21
+ tag: number;
22
+ }
20
23
  export interface IndexTagOperationRequest {
21
24
  indexTagRequest?: IndexTagRequest;
22
25
  }
26
+ export interface LinkProductChildrenTagOperationRequest {
27
+ tag: number;
28
+ linkProductChildrenTagRequest?: LinkProductChildrenTagRequest;
29
+ }
23
30
  export interface ShowTagRequest {
24
31
  tag: number;
25
32
  }
26
33
  export interface StoreTagOperationRequest {
27
34
  storeTagRequest?: StoreTagRequest;
28
35
  }
36
+ export interface UnlinkProductChildTagRequest {
37
+ tag: number;
38
+ productChild: number;
39
+ }
29
40
  export interface UpdateTagOperationRequest {
30
41
  tag: number;
31
42
  updateTagRequest?: UpdateTagRequest;
@@ -50,6 +61,14 @@ export declare class TagApi extends runtime.BaseAPI {
50
61
  * Auto-generated: getAllTag
51
62
  */
52
63
  getAllTag(requestParameters?: GetAllTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagLiteResourceArrayResponse>;
64
+ /**
65
+ * Auto-generated: getProductsTag
66
+ */
67
+ getProductsTagRaw(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>>;
68
+ /**
69
+ * Auto-generated: getProductsTag
70
+ */
71
+ getProductsTag(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
53
72
  /**
54
73
  * Auto-generated: indexTag
55
74
  */
@@ -58,6 +77,14 @@ export declare class TagApi extends runtime.BaseAPI {
58
77
  * Auto-generated: indexTag
59
78
  */
60
79
  indexTag(requestParameters?: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagResourceResponse>;
80
+ /**
81
+ * Auto-generated: linkProductChildrenTag
82
+ */
83
+ linkProductChildrenTagRaw(requestParameters: LinkProductChildrenTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>>;
84
+ /**
85
+ * Auto-generated: linkProductChildrenTag
86
+ */
87
+ linkProductChildrenTag(requestParameters: LinkProductChildrenTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
61
88
  /**
62
89
  * Auto-generated: showTag
63
90
  */
@@ -74,6 +101,14 @@ export declare class TagApi extends runtime.BaseAPI {
74
101
  * Auto-generated: storeTag
75
102
  */
76
103
  storeTag(requestParameters?: StoreTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResource>;
104
+ /**
105
+ * Auto-generated: unlinkProductChildTag
106
+ */
107
+ unlinkProductChildTagRaw(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>>;
108
+ /**
109
+ * Auto-generated: unlinkProductChildTag
110
+ */
111
+ unlinkProductChildTag(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse>;
77
112
  /**
78
113
  * Auto-generated: updateTag
79
114
  */
@@ -166,6 +166,52 @@ var TagApi = /** @class */ (function (_super) {
166
166
  });
167
167
  });
168
168
  };
169
+ /**
170
+ * Auto-generated: getProductsTag
171
+ */
172
+ TagApi.prototype.getProductsTagRaw = function (requestParameters, initOverrides) {
173
+ return __awaiter(this, void 0, void 0, function () {
174
+ var queryParameters, headerParameters, urlPath, response;
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0:
178
+ if (requestParameters['tag'] == null) {
179
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling getProductsTag().');
180
+ }
181
+ queryParameters = {};
182
+ headerParameters = {};
183
+ urlPath = "/admin-api/tag/{tag}/products";
184
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
185
+ return [4 /*yield*/, this.request({
186
+ path: urlPath,
187
+ method: 'GET',
188
+ headers: headerParameters,
189
+ query: queryParameters,
190
+ }, initOverrides)];
191
+ case 1:
192
+ response = _a.sent();
193
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
194
+ }
195
+ });
196
+ });
197
+ };
198
+ /**
199
+ * Auto-generated: getProductsTag
200
+ */
201
+ TagApi.prototype.getProductsTag = function (requestParameters, initOverrides) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ var response;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0: return [4 /*yield*/, this.getProductsTagRaw(requestParameters, initOverrides)];
207
+ case 1:
208
+ response = _a.sent();
209
+ return [4 /*yield*/, response.value()];
210
+ case 2: return [2 /*return*/, _a.sent()];
211
+ }
212
+ });
213
+ });
214
+ };
169
215
  /**
170
216
  * Auto-generated: indexTag
171
217
  */
@@ -211,6 +257,54 @@ var TagApi = /** @class */ (function (_super) {
211
257
  });
212
258
  });
213
259
  };
260
+ /**
261
+ * Auto-generated: linkProductChildrenTag
262
+ */
263
+ TagApi.prototype.linkProductChildrenTagRaw = function (requestParameters, initOverrides) {
264
+ return __awaiter(this, void 0, void 0, function () {
265
+ var queryParameters, headerParameters, urlPath, response;
266
+ return __generator(this, function (_a) {
267
+ switch (_a.label) {
268
+ case 0:
269
+ if (requestParameters['tag'] == null) {
270
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling linkProductChildrenTag().');
271
+ }
272
+ queryParameters = {};
273
+ headerParameters = {};
274
+ headerParameters['Content-Type'] = 'application/json';
275
+ urlPath = "/admin-api/tag/{tag}/link-product-children";
276
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
277
+ return [4 /*yield*/, this.request({
278
+ path: urlPath,
279
+ method: 'POST',
280
+ headers: headerParameters,
281
+ query: queryParameters,
282
+ body: (0, index_1.LinkProductChildrenTagRequestToJSON)(requestParameters['linkProductChildrenTagRequest']),
283
+ }, initOverrides)];
284
+ case 1:
285
+ response = _a.sent();
286
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
287
+ }
288
+ });
289
+ });
290
+ };
291
+ /**
292
+ * Auto-generated: linkProductChildrenTag
293
+ */
294
+ TagApi.prototype.linkProductChildrenTag = function (requestParameters, initOverrides) {
295
+ return __awaiter(this, void 0, void 0, function () {
296
+ var response;
297
+ return __generator(this, function (_a) {
298
+ switch (_a.label) {
299
+ case 0: return [4 /*yield*/, this.linkProductChildrenTagRaw(requestParameters, initOverrides)];
300
+ case 1:
301
+ response = _a.sent();
302
+ return [4 /*yield*/, response.value()];
303
+ case 2: return [2 /*return*/, _a.sent()];
304
+ }
305
+ });
306
+ });
307
+ };
214
308
  /**
215
309
  * Auto-generated: showTag
216
310
  */
@@ -302,6 +396,56 @@ var TagApi = /** @class */ (function (_super) {
302
396
  });
303
397
  });
304
398
  };
399
+ /**
400
+ * Auto-generated: unlinkProductChildTag
401
+ */
402
+ TagApi.prototype.unlinkProductChildTagRaw = function (requestParameters, initOverrides) {
403
+ return __awaiter(this, void 0, void 0, function () {
404
+ var queryParameters, headerParameters, urlPath, response;
405
+ return __generator(this, function (_a) {
406
+ switch (_a.label) {
407
+ case 0:
408
+ if (requestParameters['tag'] == null) {
409
+ throw new runtime.RequiredError('tag', 'Required parameter "tag" was null or undefined when calling unlinkProductChildTag().');
410
+ }
411
+ if (requestParameters['productChild'] == null) {
412
+ throw new runtime.RequiredError('productChild', 'Required parameter "productChild" was null or undefined when calling unlinkProductChildTag().');
413
+ }
414
+ queryParameters = {};
415
+ headerParameters = {};
416
+ urlPath = "/admin-api/tag/{tag}/remove-product-child/{productChild}";
417
+ urlPath = urlPath.replace("{".concat("tag", "}"), encodeURIComponent(String(requestParameters['tag'])));
418
+ urlPath = urlPath.replace("{".concat("productChild", "}"), encodeURIComponent(String(requestParameters['productChild'])));
419
+ return [4 /*yield*/, this.request({
420
+ path: urlPath,
421
+ method: 'POST',
422
+ headers: headerParameters,
423
+ query: queryParameters,
424
+ }, initOverrides)];
425
+ case 1:
426
+ response = _a.sent();
427
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductChildRelationResourceArrayResponseFromJSON)(jsonValue); })];
428
+ }
429
+ });
430
+ });
431
+ };
432
+ /**
433
+ * Auto-generated: unlinkProductChildTag
434
+ */
435
+ TagApi.prototype.unlinkProductChildTag = function (requestParameters, initOverrides) {
436
+ return __awaiter(this, void 0, void 0, function () {
437
+ var response;
438
+ return __generator(this, function (_a) {
439
+ switch (_a.label) {
440
+ case 0: return [4 /*yield*/, this.unlinkProductChildTagRaw(requestParameters, initOverrides)];
441
+ case 1:
442
+ response = _a.sent();
443
+ return [4 /*yield*/, response.value()];
444
+ case 2: return [2 /*return*/, _a.sent()];
445
+ }
446
+ });
447
+ });
448
+ };
305
449
  /**
306
450
  * Auto-generated: updateTag
307
451
  */
@@ -63,7 +63,7 @@ export interface ExternalApiLogResource {
63
63
  * @type {string}
64
64
  * @memberof ExternalApiLogResource
65
65
  */
66
- requestPayload?: string | null;
66
+ requestPayload: string;
67
67
  /**
68
68
  *
69
69
  * @type {string}
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
37
37
  return false;
38
38
  if (!('responseCode' in value) || value['responseCode'] === undefined)
39
39
  return false;
40
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined)
41
+ return false;
40
42
  if (!('responsePayload' in value) || value['responsePayload'] === undefined)
41
43
  return false;
42
44
  if (!('site' in value) || value['site'] === undefined)
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
59
61
  'endpoint': json['endpoint'],
60
62
  'responseCode': json['responseCode'],
61
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
63
+ 'requestPayload': json['requestPayload'],
62
64
  'responsePayload': json['responsePayload'],
63
65
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
64
66
  'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
@@ -0,0 +1,32 @@
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 LinkProductChildrenTagRequest
16
+ */
17
+ export interface LinkProductChildrenTagRequest {
18
+ /**
19
+ *
20
+ * @type {Array<number>}
21
+ * @memberof LinkProductChildrenTagRequest
22
+ */
23
+ productChildIds: Array<number>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the LinkProductChildrenTagRequest interface.
27
+ */
28
+ export declare function instanceOfLinkProductChildrenTagRequest(value: object): value is LinkProductChildrenTagRequest;
29
+ export declare function LinkProductChildrenTagRequestFromJSON(json: any): LinkProductChildrenTagRequest;
30
+ export declare function LinkProductChildrenTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkProductChildrenTagRequest;
31
+ export declare function LinkProductChildrenTagRequestToJSON(json: any): LinkProductChildrenTagRequest;
32
+ export declare function LinkProductChildrenTagRequestToJSONTyped(value?: LinkProductChildrenTagRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfLinkProductChildrenTagRequest = instanceOfLinkProductChildrenTagRequest;
17
+ exports.LinkProductChildrenTagRequestFromJSON = LinkProductChildrenTagRequestFromJSON;
18
+ exports.LinkProductChildrenTagRequestFromJSONTyped = LinkProductChildrenTagRequestFromJSONTyped;
19
+ exports.LinkProductChildrenTagRequestToJSON = LinkProductChildrenTagRequestToJSON;
20
+ exports.LinkProductChildrenTagRequestToJSONTyped = LinkProductChildrenTagRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LinkProductChildrenTagRequest interface.
23
+ */
24
+ function instanceOfLinkProductChildrenTagRequest(value) {
25
+ if (!('productChildIds' in value) || value['productChildIds'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function LinkProductChildrenTagRequestFromJSON(json) {
30
+ return LinkProductChildrenTagRequestFromJSONTyped(json, false);
31
+ }
32
+ function LinkProductChildrenTagRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'productChildIds': json['product_child_ids'],
38
+ };
39
+ }
40
+ function LinkProductChildrenTagRequestToJSON(json) {
41
+ return LinkProductChildrenTagRequestToJSONTyped(json, false);
42
+ }
43
+ function LinkProductChildrenTagRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'product_child_ids': value['productChildIds'],
50
+ };
51
+ }
@@ -33,7 +33,7 @@ export interface ProductChildRelationResource {
33
33
  * @type {string}
34
34
  * @memberof ProductChildRelationResource
35
35
  */
36
- modelNumber?: string | null;
36
+ model: string;
37
37
  /**
38
38
  *
39
39
  * @type {number}
@@ -27,6 +27,8 @@ function instanceOfProductChildRelationResource(value) {
27
27
  return false;
28
28
  if (!('name' in value) || value['name'] === undefined)
29
29
  return false;
30
+ if (!('model' in value) || value['model'] === undefined)
31
+ return false;
30
32
  if (!('sku' in value) || value['sku'] === undefined)
31
33
  return false;
32
34
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
@@ -47,7 +49,7 @@ function ProductChildRelationResourceFromJSONTyped(json, ignoreDiscriminator) {
47
49
  return {
48
50
  'id': json['id'],
49
51
  'name': json['name'],
50
- 'modelNumber': json['modelNumber'] == null ? undefined : json['modelNumber'],
52
+ 'model': json['model'],
51
53
  'sku': json['sku'],
52
54
  'netsuiteId': json['netsuiteId'],
53
55
  'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
@@ -65,7 +67,7 @@ function ProductChildRelationResourceToJSONTyped(value, ignoreDiscriminator) {
65
67
  return {
66
68
  'id': value['id'],
67
69
  'name': value['name'],
68
- 'modelNumber': value['modelNumber'],
70
+ 'model': value['model'],
69
71
  'sku': value['sku'],
70
72
  'netsuiteId': value['netsuiteId'],
71
73
  'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
@@ -36,6 +36,7 @@ export * from './IndexSupplierRequest';
36
36
  export * from './IndexTagRequest';
37
37
  export * from './LinkAssetsOverlayTemplateRequest';
38
38
  export * from './LinkAttributeProductTypeRequest';
39
+ export * from './LinkProductChildrenTagRequest';
39
40
  export * from './LinkProductTypeAttributeRequest';
40
41
  export * from './ModelAttributeResource';
41
42
  export * from './ModelAttributeResourceArrayResponse';
@@ -54,6 +54,7 @@ __exportStar(require("./IndexSupplierRequest"), exports);
54
54
  __exportStar(require("./IndexTagRequest"), exports);
55
55
  __exportStar(require("./LinkAssetsOverlayTemplateRequest"), exports);
56
56
  __exportStar(require("./LinkAttributeProductTypeRequest"), exports);
57
+ __exportStar(require("./LinkProductChildrenTagRequest"), exports);
57
58
  __exportStar(require("./LinkProductTypeAttributeRequest"), exports);
58
59
  __exportStar(require("./ModelAttributeResource"), exports);
59
60
  __exportStar(require("./ModelAttributeResourceArrayResponse"), exports);
@@ -0,0 +1,34 @@
1
+
2
+ # LinkProductChildrenTagRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `productChildIds` | Array&lt;number&gt;
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { LinkProductChildrenTagRequest } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "productChildIds": null,
19
+ } satisfies LinkProductChildrenTagRequest
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as LinkProductChildrenTagRequest
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -8,7 +8,7 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `id` | number
10
10
  `name` | string
11
- `modelNumber` | string
11
+ `model` | string
12
12
  `sku` | number
13
13
  `netsuiteId` | number
14
14
  `thumbnail` | [AssetResource](AssetResource.md)
@@ -23,7 +23,7 @@ import type { ProductChildRelationResource } from '@digital8/lighting-illusions-
23
23
  const example = {
24
24
  "id": null,
25
25
  "name": null,
26
- "modelNumber": null,
26
+ "model": null,
27
27
  "sku": null,
28
28
  "netsuiteId": null,
29
29
  "thumbnail": null,
package/docs/TagApi.md CHANGED
@@ -6,9 +6,12 @@ All URIs are relative to *http://localhost/api*
6
6
  |------------- | ------------- | -------------|
7
7
  | [**destroyTag**](TagApi.md#destroytag) | **DELETE** /admin-api/tag/{tag}/delete | Auto-generated: destroyTag |
8
8
  | [**getAllTag**](TagApi.md#getalltag) | **POST** /admin-api/tag/all | Auto-generated: getAllTag |
9
+ | [**getProductsTag**](TagApi.md#getproductstag) | **GET** /admin-api/tag/{tag}/products | Auto-generated: getProductsTag |
9
10
  | [**indexTag**](TagApi.md#indextagoperation) | **POST** /admin-api/tag/list | Auto-generated: indexTag |
11
+ | [**linkProductChildrenTag**](TagApi.md#linkproductchildrentagoperation) | **POST** /admin-api/tag/{tag}/link-product-children | Auto-generated: linkProductChildrenTag |
10
12
  | [**showTag**](TagApi.md#showtag) | **GET** /admin-api/tag/{tag} | Auto-generated: showTag |
11
13
  | [**storeTag**](TagApi.md#storetagoperation) | **POST** /admin-api/tag/create | Auto-generated: storeTag |
14
+ | [**unlinkProductChildTag**](TagApi.md#unlinkproductchildtag) | **POST** /admin-api/tag/{tag}/remove-product-child/{productChild} | Auto-generated: unlinkProductChildTag |
12
15
  | [**updateTag**](TagApi.md#updatetagoperation) | **PUT** /admin-api/tag/{tag}/update | Auto-generated: updateTag |
13
16
 
14
17
 
@@ -143,6 +146,71 @@ No authorization required
143
146
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
144
147
 
145
148
 
149
+ ## getProductsTag
150
+
151
+ > ProductChildRelationResourceArrayResponse getProductsTag(tag)
152
+
153
+ Auto-generated: getProductsTag
154
+
155
+ ### Example
156
+
157
+ ```ts
158
+ import {
159
+ Configuration,
160
+ TagApi,
161
+ } from '@digital8/lighting-illusions-ts-sdk';
162
+ import type { GetProductsTagRequest } from '@digital8/lighting-illusions-ts-sdk';
163
+
164
+ async function example() {
165
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
166
+ const api = new TagApi();
167
+
168
+ const body = {
169
+ // number | The id of the tag
170
+ tag: 56,
171
+ } satisfies GetProductsTagRequest;
172
+
173
+ try {
174
+ const data = await api.getProductsTag(body);
175
+ console.log(data);
176
+ } catch (error) {
177
+ console.error(error);
178
+ }
179
+ }
180
+
181
+ // Run the test
182
+ example().catch(console.error);
183
+ ```
184
+
185
+ ### Parameters
186
+
187
+
188
+ | Name | Type | Description | Notes |
189
+ |------------- | ------------- | ------------- | -------------|
190
+ | **tag** | `number` | The id of the tag | [Defaults to `undefined`] |
191
+
192
+ ### Return type
193
+
194
+ [**ProductChildRelationResourceArrayResponse**](ProductChildRelationResourceArrayResponse.md)
195
+
196
+ ### Authorization
197
+
198
+ No authorization required
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: Not defined
203
+ - **Accept**: `application/json`
204
+
205
+
206
+ ### HTTP response details
207
+ | Status code | Description | Response headers |
208
+ |-------------|-------------|------------------|
209
+ | **200** | Successful resource response | - |
210
+
211
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
212
+
213
+
146
214
  ## indexTag
147
215
 
148
216
  > PaginatedTagResourceResponse indexTag(indexTagRequest)
@@ -208,6 +276,74 @@ No authorization required
208
276
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
209
277
 
210
278
 
279
+ ## linkProductChildrenTag
280
+
281
+ > ProductChildRelationResourceArrayResponse linkProductChildrenTag(tag, linkProductChildrenTagRequest)
282
+
283
+ Auto-generated: linkProductChildrenTag
284
+
285
+ ### Example
286
+
287
+ ```ts
288
+ import {
289
+ Configuration,
290
+ TagApi,
291
+ } from '@digital8/lighting-illusions-ts-sdk';
292
+ import type { LinkProductChildrenTagOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
293
+
294
+ async function example() {
295
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
296
+ const api = new TagApi();
297
+
298
+ const body = {
299
+ // number | The id of the tag
300
+ tag: 56,
301
+ // LinkProductChildrenTagRequest (optional)
302
+ linkProductChildrenTagRequest: ...,
303
+ } satisfies LinkProductChildrenTagOperationRequest;
304
+
305
+ try {
306
+ const data = await api.linkProductChildrenTag(body);
307
+ console.log(data);
308
+ } catch (error) {
309
+ console.error(error);
310
+ }
311
+ }
312
+
313
+ // Run the test
314
+ example().catch(console.error);
315
+ ```
316
+
317
+ ### Parameters
318
+
319
+
320
+ | Name | Type | Description | Notes |
321
+ |------------- | ------------- | ------------- | -------------|
322
+ | **tag** | `number` | The id of the tag | [Defaults to `undefined`] |
323
+ | **linkProductChildrenTagRequest** | [LinkProductChildrenTagRequest](LinkProductChildrenTagRequest.md) | | [Optional] |
324
+
325
+ ### Return type
326
+
327
+ [**ProductChildRelationResourceArrayResponse**](ProductChildRelationResourceArrayResponse.md)
328
+
329
+ ### Authorization
330
+
331
+ No authorization required
332
+
333
+ ### HTTP request headers
334
+
335
+ - **Content-Type**: `application/json`
336
+ - **Accept**: `application/json`
337
+
338
+
339
+ ### HTTP response details
340
+ | Status code | Description | Response headers |
341
+ |-------------|-------------|------------------|
342
+ | **200** | Successful resource response | - |
343
+
344
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
345
+
346
+
211
347
  ## showTag
212
348
 
213
349
  > TagResource showTag(tag)
@@ -338,6 +474,74 @@ No authorization required
338
474
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
339
475
 
340
476
 
477
+ ## unlinkProductChildTag
478
+
479
+ > ProductChildRelationResourceArrayResponse unlinkProductChildTag(tag, productChild)
480
+
481
+ Auto-generated: unlinkProductChildTag
482
+
483
+ ### Example
484
+
485
+ ```ts
486
+ import {
487
+ Configuration,
488
+ TagApi,
489
+ } from '@digital8/lighting-illusions-ts-sdk';
490
+ import type { UnlinkProductChildTagRequest } from '@digital8/lighting-illusions-ts-sdk';
491
+
492
+ async function example() {
493
+ console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
494
+ const api = new TagApi();
495
+
496
+ const body = {
497
+ // number | The id of the tag
498
+ tag: 56,
499
+ // number | The id of the productChild
500
+ productChild: 56,
501
+ } satisfies UnlinkProductChildTagRequest;
502
+
503
+ try {
504
+ const data = await api.unlinkProductChildTag(body);
505
+ console.log(data);
506
+ } catch (error) {
507
+ console.error(error);
508
+ }
509
+ }
510
+
511
+ // Run the test
512
+ example().catch(console.error);
513
+ ```
514
+
515
+ ### Parameters
516
+
517
+
518
+ | Name | Type | Description | Notes |
519
+ |------------- | ------------- | ------------- | -------------|
520
+ | **tag** | `number` | The id of the tag | [Defaults to `undefined`] |
521
+ | **productChild** | `number` | The id of the productChild | [Defaults to `undefined`] |
522
+
523
+ ### Return type
524
+
525
+ [**ProductChildRelationResourceArrayResponse**](ProductChildRelationResourceArrayResponse.md)
526
+
527
+ ### Authorization
528
+
529
+ No authorization required
530
+
531
+ ### HTTP request headers
532
+
533
+ - **Content-Type**: Not defined
534
+ - **Accept**: `application/json`
535
+
536
+
537
+ ### HTTP response details
538
+ | Status code | Description | Response headers |
539
+ |-------------|-------------|------------------|
540
+ | **200** | Successful resource response | - |
541
+
542
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
543
+
544
+
341
545
  ## updateTag
342
546
 
343
547
  > TagResource updateTag(tag, updateTagRequest)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.438",
3
+ "version": "0.0.440",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -17,7 +17,9 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  GenericResponse,
19
19
  IndexTagRequest,
20
+ LinkProductChildrenTagRequest,
20
21
  PaginatedTagResourceResponse,
22
+ ProductChildRelationResourceArrayResponse,
21
23
  StoreTagRequest,
22
24
  TagLiteResourceArrayResponse,
23
25
  TagResource,
@@ -28,8 +30,12 @@ import {
28
30
  GenericResponseToJSON,
29
31
  IndexTagRequestFromJSON,
30
32
  IndexTagRequestToJSON,
33
+ LinkProductChildrenTagRequestFromJSON,
34
+ LinkProductChildrenTagRequestToJSON,
31
35
  PaginatedTagResourceResponseFromJSON,
32
36
  PaginatedTagResourceResponseToJSON,
37
+ ProductChildRelationResourceArrayResponseFromJSON,
38
+ ProductChildRelationResourceArrayResponseToJSON,
33
39
  StoreTagRequestFromJSON,
34
40
  StoreTagRequestToJSON,
35
41
  TagLiteResourceArrayResponseFromJSON,
@@ -48,10 +54,19 @@ export interface GetAllTagRequest {
48
54
  indexTagRequest?: IndexTagRequest;
49
55
  }
50
56
 
57
+ export interface GetProductsTagRequest {
58
+ tag: number;
59
+ }
60
+
51
61
  export interface IndexTagOperationRequest {
52
62
  indexTagRequest?: IndexTagRequest;
53
63
  }
54
64
 
65
+ export interface LinkProductChildrenTagOperationRequest {
66
+ tag: number;
67
+ linkProductChildrenTagRequest?: LinkProductChildrenTagRequest;
68
+ }
69
+
55
70
  export interface ShowTagRequest {
56
71
  tag: number;
57
72
  }
@@ -60,6 +75,11 @@ export interface StoreTagOperationRequest {
60
75
  storeTagRequest?: StoreTagRequest;
61
76
  }
62
77
 
78
+ export interface UnlinkProductChildTagRequest {
79
+ tag: number;
80
+ productChild: number;
81
+ }
82
+
63
83
  export interface UpdateTagOperationRequest {
64
84
  tag: number;
65
85
  updateTagRequest?: UpdateTagRequest;
@@ -139,6 +159,43 @@ export class TagApi extends runtime.BaseAPI {
139
159
  return await response.value();
140
160
  }
141
161
 
162
+ /**
163
+ * Auto-generated: getProductsTag
164
+ */
165
+ async getProductsTagRaw(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
166
+ if (requestParameters['tag'] == null) {
167
+ throw new runtime.RequiredError(
168
+ 'tag',
169
+ 'Required parameter "tag" was null or undefined when calling getProductsTag().'
170
+ );
171
+ }
172
+
173
+ const queryParameters: any = {};
174
+
175
+ const headerParameters: runtime.HTTPHeaders = {};
176
+
177
+
178
+ let urlPath = `/admin-api/tag/{tag}/products`;
179
+ urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
180
+
181
+ const response = await this.request({
182
+ path: urlPath,
183
+ method: 'GET',
184
+ headers: headerParameters,
185
+ query: queryParameters,
186
+ }, initOverrides);
187
+
188
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
189
+ }
190
+
191
+ /**
192
+ * Auto-generated: getProductsTag
193
+ */
194
+ async getProductsTag(requestParameters: GetProductsTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
195
+ const response = await this.getProductsTagRaw(requestParameters, initOverrides);
196
+ return await response.value();
197
+ }
198
+
142
199
  /**
143
200
  * Auto-generated: indexTag
144
201
  */
@@ -171,6 +228,46 @@ export class TagApi extends runtime.BaseAPI {
171
228
  return await response.value();
172
229
  }
173
230
 
231
+ /**
232
+ * Auto-generated: linkProductChildrenTag
233
+ */
234
+ async linkProductChildrenTagRaw(requestParameters: LinkProductChildrenTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
235
+ if (requestParameters['tag'] == null) {
236
+ throw new runtime.RequiredError(
237
+ 'tag',
238
+ 'Required parameter "tag" was null or undefined when calling linkProductChildrenTag().'
239
+ );
240
+ }
241
+
242
+ const queryParameters: any = {};
243
+
244
+ const headerParameters: runtime.HTTPHeaders = {};
245
+
246
+ headerParameters['Content-Type'] = 'application/json';
247
+
248
+
249
+ let urlPath = `/admin-api/tag/{tag}/link-product-children`;
250
+ urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
251
+
252
+ const response = await this.request({
253
+ path: urlPath,
254
+ method: 'POST',
255
+ headers: headerParameters,
256
+ query: queryParameters,
257
+ body: LinkProductChildrenTagRequestToJSON(requestParameters['linkProductChildrenTagRequest']),
258
+ }, initOverrides);
259
+
260
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
261
+ }
262
+
263
+ /**
264
+ * Auto-generated: linkProductChildrenTag
265
+ */
266
+ async linkProductChildrenTag(requestParameters: LinkProductChildrenTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
267
+ const response = await this.linkProductChildrenTagRaw(requestParameters, initOverrides);
268
+ return await response.value();
269
+ }
270
+
174
271
  /**
175
272
  * Auto-generated: showTag
176
273
  */
@@ -240,6 +337,51 @@ export class TagApi extends runtime.BaseAPI {
240
337
  return await response.value();
241
338
  }
242
339
 
340
+ /**
341
+ * Auto-generated: unlinkProductChildTag
342
+ */
343
+ async unlinkProductChildTagRaw(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildRelationResourceArrayResponse>> {
344
+ if (requestParameters['tag'] == null) {
345
+ throw new runtime.RequiredError(
346
+ 'tag',
347
+ 'Required parameter "tag" was null or undefined when calling unlinkProductChildTag().'
348
+ );
349
+ }
350
+
351
+ if (requestParameters['productChild'] == null) {
352
+ throw new runtime.RequiredError(
353
+ 'productChild',
354
+ 'Required parameter "productChild" was null or undefined when calling unlinkProductChildTag().'
355
+ );
356
+ }
357
+
358
+ const queryParameters: any = {};
359
+
360
+ const headerParameters: runtime.HTTPHeaders = {};
361
+
362
+
363
+ let urlPath = `/admin-api/tag/{tag}/remove-product-child/{productChild}`;
364
+ urlPath = urlPath.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag'])));
365
+ urlPath = urlPath.replace(`{${"productChild"}}`, encodeURIComponent(String(requestParameters['productChild'])));
366
+
367
+ const response = await this.request({
368
+ path: urlPath,
369
+ method: 'POST',
370
+ headers: headerParameters,
371
+ query: queryParameters,
372
+ }, initOverrides);
373
+
374
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildRelationResourceArrayResponseFromJSON(jsonValue));
375
+ }
376
+
377
+ /**
378
+ * Auto-generated: unlinkProductChildTag
379
+ */
380
+ async unlinkProductChildTag(requestParameters: UnlinkProductChildTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildRelationResourceArrayResponse> {
381
+ const response = await this.unlinkProductChildTagRaw(requestParameters, initOverrides);
382
+ return await response.value();
383
+ }
384
+
243
385
  /**
244
386
  * Auto-generated: updateTag
245
387
  */
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload?: string | null;
77
+ requestPayload: string;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
+ if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
109
110
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
110
111
  if (!('site' in value) || value['site'] === undefined) return false;
111
112
  return true;
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
128
129
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
129
130
  'endpoint': json['endpoint'],
130
131
  'responseCode': json['responseCode'],
131
- 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
132
+ 'requestPayload': json['requestPayload'],
132
133
  'responsePayload': json['responsePayload'],
133
134
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
134
135
  'site': SiteLiteResourceFromJSON(json['site']),
@@ -0,0 +1,66 @@
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 LinkProductChildrenTagRequest
20
+ */
21
+ export interface LinkProductChildrenTagRequest {
22
+ /**
23
+ *
24
+ * @type {Array<number>}
25
+ * @memberof LinkProductChildrenTagRequest
26
+ */
27
+ productChildIds: Array<number>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the LinkProductChildrenTagRequest interface.
32
+ */
33
+ export function instanceOfLinkProductChildrenTagRequest(value: object): value is LinkProductChildrenTagRequest {
34
+ if (!('productChildIds' in value) || value['productChildIds'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function LinkProductChildrenTagRequestFromJSON(json: any): LinkProductChildrenTagRequest {
39
+ return LinkProductChildrenTagRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function LinkProductChildrenTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LinkProductChildrenTagRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'productChildIds': json['product_child_ids'],
49
+ };
50
+ }
51
+
52
+ export function LinkProductChildrenTagRequestToJSON(json: any): LinkProductChildrenTagRequest {
53
+ return LinkProductChildrenTagRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function LinkProductChildrenTagRequestToJSONTyped(value?: LinkProductChildrenTagRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'product_child_ids': value['productChildIds'],
64
+ };
65
+ }
66
+
@@ -44,7 +44,7 @@ export interface ProductChildRelationResource {
44
44
  * @type {string}
45
45
  * @memberof ProductChildRelationResource
46
46
  */
47
- modelNumber?: string | null;
47
+ model: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -77,6 +77,7 @@ export interface ProductChildRelationResource {
77
77
  export function instanceOfProductChildRelationResource(value: object): value is ProductChildRelationResource {
78
78
  if (!('id' in value) || value['id'] === undefined) return false;
79
79
  if (!('name' in value) || value['name'] === undefined) return false;
80
+ if (!('model' in value) || value['model'] === undefined) return false;
80
81
  if (!('sku' in value) || value['sku'] === undefined) return false;
81
82
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
82
83
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
@@ -96,7 +97,7 @@ export function ProductChildRelationResourceFromJSONTyped(json: any, ignoreDiscr
96
97
 
97
98
  'id': json['id'],
98
99
  'name': json['name'],
99
- 'modelNumber': json['modelNumber'] == null ? undefined : json['modelNumber'],
100
+ 'model': json['model'],
100
101
  'sku': json['sku'],
101
102
  'netsuiteId': json['netsuiteId'],
102
103
  'thumbnail': AssetResourceFromJSON(json['thumbnail']),
@@ -117,7 +118,7 @@ export function ProductChildRelationResourceToJSONTyped(value?: ProductChildRela
117
118
 
118
119
  'id': value['id'],
119
120
  'name': value['name'],
120
- 'modelNumber': value['modelNumber'],
121
+ 'model': value['model'],
121
122
  'sku': value['sku'],
122
123
  'netsuiteId': value['netsuiteId'],
123
124
  'thumbnail': AssetResourceToJSON(value['thumbnail']),
@@ -38,6 +38,7 @@ export * from './IndexSupplierRequest';
38
38
  export * from './IndexTagRequest';
39
39
  export * from './LinkAssetsOverlayTemplateRequest';
40
40
  export * from './LinkAttributeProductTypeRequest';
41
+ export * from './LinkProductChildrenTagRequest';
41
42
  export * from './LinkProductTypeAttributeRequest';
42
43
  export * from './ModelAttributeResource';
43
44
  export * from './ModelAttributeResourceArrayResponse';