@digital8/lighting-illusions-ts-sdk 0.0.639 → 0.0.641

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 (96) hide show
  1. package/.openapi-generator/FILES +38 -4
  2. package/README.md +26 -4
  3. package/dist/apis/DefinitionApi.d.ts +85 -0
  4. package/dist/apis/DefinitionApi.js +355 -0
  5. package/dist/apis/index.d.ts +1 -1
  6. package/dist/apis/index.js +1 -1
  7. package/dist/models/AssetFrontendResource.d.ts +74 -0
  8. package/dist/models/AssetFrontendResource.js +79 -0
  9. package/dist/models/AssetFrontendResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/AssetFrontendResourceArrayResponse.js +50 -0
  11. package/dist/models/DefinitionListResource.d.ts +38 -0
  12. package/dist/models/DefinitionListResource.js +55 -0
  13. package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
  15. package/dist/models/DefinitionResource.d.ts +44 -0
  16. package/dist/models/DefinitionResource.js +59 -0
  17. package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/DefinitionResourceArrayResponse.js +50 -0
  19. package/dist/models/DocumentFrontendResource.d.ts +44 -0
  20. package/dist/models/DocumentFrontendResource.js +57 -0
  21. package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/DocumentFrontendResourceArrayResponse.js +50 -0
  23. package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
  24. package/dist/models/GetAllDefinitionRequest.js +76 -0
  25. package/dist/models/IndexDefinitionRequest.d.ts +92 -0
  26. package/dist/models/IndexDefinitionRequest.js +80 -0
  27. package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +62 -0
  28. package/dist/models/OverlayTemplateAssetFrontendResource.js +71 -0
  29. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +50 -0
  31. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
  32. package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
  33. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
  34. package/dist/models/PaginatedDefinitionResourceResponse.js +57 -0
  35. package/dist/models/ProductCompareResource.d.ts +141 -0
  36. package/dist/models/ProductCompareResource.js +124 -0
  37. package/dist/models/ProductCompareResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/ProductCompareResourceArrayResponse.js +50 -0
  39. package/dist/models/StoreDefinitionRequest.d.ts +38 -0
  40. package/dist/models/StoreDefinitionRequest.js +55 -0
  41. package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
  42. package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
  43. package/dist/models/UpdateDefinitionRequest.js +55 -0
  44. package/dist/models/index.d.ts +18 -1
  45. package/dist/models/index.js +18 -1
  46. package/docs/AssetFrontendResource.md +48 -0
  47. package/docs/AssetFrontendResourceArrayResponse.md +34 -0
  48. package/docs/DefinitionApi.md +407 -0
  49. package/docs/DefinitionListResource.md +36 -0
  50. package/docs/DefinitionListResourceArrayResponse.md +34 -0
  51. package/docs/DefinitionResource.md +38 -0
  52. package/docs/DefinitionResourceArrayResponse.md +34 -0
  53. package/docs/DocumentFrontendResource.md +38 -0
  54. package/docs/DocumentFrontendResourceArrayResponse.md +34 -0
  55. package/docs/GetAllDefinitionRequest.md +44 -0
  56. package/docs/IndexDefinitionRequest.md +48 -0
  57. package/docs/OverlayTemplateAssetFrontendResource.md +44 -0
  58. package/docs/OverlayTemplateAssetFrontendResourceArrayResponse.md +34 -0
  59. package/docs/PaginatedDefinitionListResourceResponse.md +36 -0
  60. package/docs/PaginatedDefinitionResourceResponse.md +36 -0
  61. package/docs/ProductCompareResource.md +70 -0
  62. package/docs/ProductCompareResourceArrayResponse.md +34 -0
  63. package/docs/StoreDefinitionRequest.md +36 -0
  64. package/docs/StoreProductCategoryRequest.md +1 -1
  65. package/docs/UpdateDefinitionRequest.md +36 -0
  66. package/package.json +1 -1
  67. package/src/apis/DefinitionApi.ts +286 -0
  68. package/src/apis/index.ts +1 -1
  69. package/src/models/AssetFrontendResource.ts +129 -0
  70. package/src/models/AssetFrontendResourceArrayResponse.ts +73 -0
  71. package/src/models/DefinitionListResource.ts +75 -0
  72. package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
  73. package/src/models/DefinitionResource.ts +84 -0
  74. package/src/models/DefinitionResourceArrayResponse.ts +73 -0
  75. package/src/models/DocumentFrontendResource.ts +83 -0
  76. package/src/models/DocumentFrontendResourceArrayResponse.ts +73 -0
  77. package/src/models/GetAllDefinitionRequest.ts +127 -0
  78. package/src/models/IndexDefinitionRequest.ts +143 -0
  79. package/src/models/OverlayTemplateAssetFrontendResource.ts +111 -0
  80. package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +73 -0
  81. package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
  82. package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
  83. package/src/models/ProductCompareResource.ts +236 -0
  84. package/src/models/ProductCompareResourceArrayResponse.ts +73 -0
  85. package/src/models/StoreDefinitionRequest.ts +75 -0
  86. package/src/models/StoreProductCategoryRequest.ts +2 -2
  87. package/src/models/UpdateDefinitionRequest.ts +75 -0
  88. package/src/models/index.ts +18 -1
  89. package/dist/apis/NetsuiteApi.d.ts +0 -29
  90. package/dist/apis/NetsuiteApi.js +0 -125
  91. package/dist/models/SyncProductNetsuiteProductRequest.d.ts +0 -182
  92. package/dist/models/SyncProductNetsuiteProductRequest.js +0 -101
  93. package/docs/NetsuiteApi.md +0 -74
  94. package/docs/SyncProductNetsuiteProductRequest.md +0 -84
  95. package/src/apis/NetsuiteApi.ts +0 -69
  96. package/src/models/SyncProductNetsuiteProductRequest.ts +0 -266
@@ -0,0 +1,75 @@
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 UpdateDefinitionRequest
20
+ */
21
+ export interface UpdateDefinitionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof UpdateDefinitionRequest
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UpdateDefinitionRequest
32
+ */
33
+ content: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the UpdateDefinitionRequest interface.
38
+ */
39
+ export function instanceOfUpdateDefinitionRequest(value: object): value is UpdateDefinitionRequest {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('content' in value) || value['content'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function UpdateDefinitionRequestFromJSON(json: any): UpdateDefinitionRequest {
46
+ return UpdateDefinitionRequestFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function UpdateDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDefinitionRequest {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'content': json['content'],
57
+ };
58
+ }
59
+
60
+ export function UpdateDefinitionRequestToJSON(json: any): UpdateDefinitionRequest {
61
+ return UpdateDefinitionRequestToJSONTyped(json, false);
62
+ }
63
+
64
+ export function UpdateDefinitionRequestToJSONTyped(value?: UpdateDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'content': value['content'],
73
+ };
74
+ }
75
+
@@ -2,6 +2,8 @@
2
2
  /* eslint-disable */
3
3
  export * from './AssetFileForUploadResource';
4
4
  export * from './AssetFileForUploadResourceArrayResponse';
5
+ export * from './AssetFrontendResource';
6
+ export * from './AssetFrontendResourceArrayResponse';
5
7
  export * from './AssetLiteResource';
6
8
  export * from './AssetLiteResourceArrayResponse';
7
9
  export * from './AssetResource';
@@ -33,6 +35,10 @@ export * from './CategoryAutomationFieldType';
33
35
  export * from './CategoryAutomationRuleResource';
34
36
  export * from './CategoryAutomationRuleResourceArrayResponse';
35
37
  export * from './CouponDiscountType';
38
+ export * from './DefinitionListResource';
39
+ export * from './DefinitionListResourceArrayResponse';
40
+ export * from './DefinitionResource';
41
+ export * from './DefinitionResourceArrayResponse';
36
42
  export * from './DescriptionResource';
37
43
  export * from './DescriptionResourceArrayResponse';
38
44
  export * from './DestroyAttributeValueRequest';
@@ -43,6 +49,8 @@ export * from './DetachDocumentsProductChildSiteDetailRequest';
43
49
  export * from './DetachProductsProductCategoryRequest';
44
50
  export * from './DocumentFileForUploadResource';
45
51
  export * from './DocumentFileForUploadResourceArrayResponse';
52
+ export * from './DocumentFrontendResource';
53
+ export * from './DocumentFrontendResourceArrayResponse';
46
54
  export * from './DocumentLiteResource';
47
55
  export * from './DocumentLiteResourceArrayResponse';
48
56
  export * from './DocumentResource';
@@ -55,6 +63,7 @@ export * from './ExternalApiProvider';
55
63
  export * from './ExternalApiSyncStatus';
56
64
  export * from './GenericResponse';
57
65
  export * from './GetAllAttributeRequest';
66
+ export * from './GetAllDefinitionRequest';
58
67
  export * from './GetAllDocumentRequest';
59
68
  export * from './GetAllGoogleCategoryRequest';
60
69
  export * from './GetAllOverlayTemplateRequest';
@@ -74,6 +83,7 @@ export * from './GlobalSearchResponseResourceArrayResponse';
74
83
  export * from './GoogleCategoryResource';
75
84
  export * from './GoogleCategoryResourceArrayResponse';
76
85
  export * from './IndexAttributeRequest';
86
+ export * from './IndexDefinitionRequest';
77
87
  export * from './IndexDocumentRequest';
78
88
  export * from './IndexExternalApiLogRequest';
79
89
  export * from './IndexOverlayTemplateRequest';
@@ -87,6 +97,8 @@ export * from './IndexSupplierRequest';
87
97
  export * from './IndexTagRequest';
88
98
  export * from './ModelAttributeResource';
89
99
  export * from './ModelAttributeResourceArrayResponse';
100
+ export * from './OverlayTemplateAssetFrontendResource';
101
+ export * from './OverlayTemplateAssetFrontendResourceArrayResponse';
90
102
  export * from './OverlayTemplateAssetPosition';
91
103
  export * from './OverlayTemplateAssetResource';
92
104
  export * from './OverlayTemplateAssetResourceArrayResponse';
@@ -100,6 +112,8 @@ export * from './PaginatedAttributeListResourceResponse';
100
112
  export * from './PaginatedAttributeLiteResourceResponse';
101
113
  export * from './PaginatedAttributeProductTypeRelationResourceResponse';
102
114
  export * from './PaginatedAttributeResourceResponse';
115
+ export * from './PaginatedDefinitionListResourceResponse';
116
+ export * from './PaginatedDefinitionResourceResponse';
103
117
  export * from './PaginatedDocumentResourceResponse';
104
118
  export * from './PaginatedExternalApiLogListResourceResponse';
105
119
  export * from './PaginatedExternalApiLogResourceResponse';
@@ -161,6 +175,8 @@ export * from './ProductChildSiteDetailLiteResource';
161
175
  export * from './ProductChildSiteDetailLiteResourceArrayResponse';
162
176
  export * from './ProductChildSiteDetailResource';
163
177
  export * from './ProductChildSiteDetailResourceArrayResponse';
178
+ export * from './ProductCompareResource';
179
+ export * from './ProductCompareResourceArrayResponse';
164
180
  export * from './ProductListResource';
165
181
  export * from './ProductListResourceArrayResponse';
166
182
  export * from './ProductLiteResource';
@@ -201,6 +217,7 @@ export * from './SiteResourceArrayResponse';
201
217
  export * from './StoreAssetFileRequest';
202
218
  export * from './StoreAttributeRequest';
203
219
  export * from './StoreAttributeValueRequest';
220
+ export * from './StoreDefinitionRequest';
204
221
  export * from './StoreDocumentFileRequest';
205
222
  export * from './StoreDocumentRequest';
206
223
  export * from './StoreOverlayTemplateAssetRequest';
@@ -227,7 +244,6 @@ export * from './SupplierLiteResource';
227
244
  export * from './SupplierLiteResourceArrayResponse';
228
245
  export * from './SupplierResource';
229
246
  export * from './SupplierResourceArrayResponse';
230
- export * from './SyncProductNetsuiteProductRequest';
231
247
  export * from './TagListResource';
232
248
  export * from './TagListResourceArrayResponse';
233
249
  export * from './TagLiteResource';
@@ -237,6 +253,7 @@ export * from './TagResourceArrayResponse';
237
253
  export * from './TagType';
238
254
  export * from './UpdateAttributeRequest';
239
255
  export * from './UpdateAttributeValueRequest';
256
+ export * from './UpdateDefinitionRequest';
240
257
  export * from './UpdateDocumentRequest';
241
258
  export * from './UpdateFilterOrderAttributeRequest';
242
259
  export * from './UpdateFilterOrderAttributeRequestValuesInner';
@@ -1,29 +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
- import * as runtime from '../runtime';
13
- import type { GenericResponse, SyncProductNetsuiteProductRequest } from '../models/index';
14
- export interface SyncProductNetsuiteProductOperationRequest {
15
- syncProductNetsuiteProductRequest?: SyncProductNetsuiteProductRequest;
16
- }
17
- /**
18
- *
19
- */
20
- export declare class NetsuiteApi extends runtime.BaseAPI {
21
- /**
22
- * Auto-generated: syncProductNetsuiteProduct
23
- */
24
- syncProductNetsuiteProductRaw(requestParameters: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
25
- /**
26
- * Auto-generated: syncProductNetsuiteProduct
27
- */
28
- syncProductNetsuiteProduct(requestParameters?: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
29
- }
@@ -1,125 +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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.NetsuiteApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var NetsuiteApi = /** @class */ (function (_super) {
74
- __extends(NetsuiteApi, _super);
75
- function NetsuiteApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Auto-generated: syncProductNetsuiteProduct
80
- */
81
- NetsuiteApi.prototype.syncProductNetsuiteProductRaw = function (requestParameters, initOverrides) {
82
- return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, urlPath, response;
84
- return __generator(this, function (_a) {
85
- switch (_a.label) {
86
- case 0:
87
- queryParameters = {};
88
- headerParameters = {};
89
- headerParameters['Content-Type'] = 'application/json';
90
- urlPath = "/admin-api/netsuite/products/sync";
91
- return [4 /*yield*/, this.request({
92
- path: urlPath,
93
- method: 'POST',
94
- headers: headerParameters,
95
- query: queryParameters,
96
- body: (0, index_1.SyncProductNetsuiteProductRequestToJSON)(requestParameters['syncProductNetsuiteProductRequest']),
97
- }, initOverrides)];
98
- case 1:
99
- response = _a.sent();
100
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
101
- }
102
- });
103
- });
104
- };
105
- /**
106
- * Auto-generated: syncProductNetsuiteProduct
107
- */
108
- NetsuiteApi.prototype.syncProductNetsuiteProduct = function () {
109
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
110
- var response;
111
- if (requestParameters === void 0) { requestParameters = {}; }
112
- return __generator(this, function (_a) {
113
- switch (_a.label) {
114
- case 0: return [4 /*yield*/, this.syncProductNetsuiteProductRaw(requestParameters, initOverrides)];
115
- case 1:
116
- response = _a.sent();
117
- return [4 /*yield*/, response.value()];
118
- case 2: return [2 /*return*/, _a.sent()];
119
- }
120
- });
121
- });
122
- };
123
- return NetsuiteApi;
124
- }(runtime.BaseAPI));
125
- exports.NetsuiteApi = NetsuiteApi;
@@ -1,182 +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 SyncProductNetsuiteProductRequest
16
- */
17
- export interface SyncProductNetsuiteProductRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof SyncProductNetsuiteProductRequest
22
- */
23
- internalId: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof SyncProductNetsuiteProductRequest
28
- */
29
- productType?: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SyncProductNetsuiteProductRequest
34
- */
35
- upccode?: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof SyncProductNetsuiteProductRequest
40
- */
41
- vendorname?: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SyncProductNetsuiteProductRequest
46
- */
47
- custitemAnxRetailId?: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof SyncProductNetsuiteProductRequest
52
- */
53
- weight?: number;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof SyncProductNetsuiteProductRequest
58
- */
59
- custitemAnxAllowOversell?: string;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof SyncProductNetsuiteProductRequest
64
- */
65
- onlineLocationCost?: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof SyncProductNetsuiteProductRequest
70
- */
71
- popularityScore?: number;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof SyncProductNetsuiteProductRequest
76
- */
77
- excludeFrontend?: string;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof SyncProductNetsuiteProductRequest
82
- */
83
- excludeSearch?: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof SyncProductNetsuiteProductRequest
88
- */
89
- oversized?: string;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof SyncProductNetsuiteProductRequest
94
- */
95
- isBundle?: string;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof SyncProductNetsuiteProductRequest
100
- */
101
- bundleUpccode?: string;
102
- /**
103
- *
104
- * @type {Array<string>}
105
- * @memberof SyncProductNetsuiteProductRequest
106
- */
107
- published?: Array<string>;
108
- /**
109
- *
110
- * @type {number}
111
- * @memberof SyncProductNetsuiteProductRequest
112
- */
113
- custitemrrpGst?: number;
114
- /**
115
- *
116
- * @type {string}
117
- * @memberof SyncProductNetsuiteProductRequest
118
- */
119
- liPrice?: string;
120
- /**
121
- *
122
- * @type {string}
123
- * @memberof SyncProductNetsuiteProductRequest
124
- */
125
- cfdPrice?: string;
126
- /**
127
- *
128
- * @type {string}
129
- * @memberof SyncProductNetsuiteProductRequest
130
- */
131
- labelLi?: string;
132
- /**
133
- *
134
- * @type {string}
135
- * @memberof SyncProductNetsuiteProductRequest
136
- */
137
- labelCfd?: string;
138
- /**
139
- *
140
- * @type {string}
141
- * @memberof SyncProductNetsuiteProductRequest
142
- */
143
- priceFeedLi?: string;
144
- /**
145
- *
146
- * @type {string}
147
- * @memberof SyncProductNetsuiteProductRequest
148
- */
149
- priceFeedCfd?: string;
150
- /**
151
- *
152
- * @type {string}
153
- * @memberof SyncProductNetsuiteProductRequest
154
- */
155
- socialFeed?: string;
156
- /**
157
- *
158
- * @type {Array<string>}
159
- * @memberof SyncProductNetsuiteProductRequest
160
- */
161
- attribRoom?: Array<string>;
162
- /**
163
- *
164
- * @type {Array<string>}
165
- * @memberof SyncProductNetsuiteProductRequest
166
- */
167
- attribStyle?: Array<string>;
168
- /**
169
- *
170
- * @type {string}
171
- * @memberof SyncProductNetsuiteProductRequest
172
- */
173
- attribPrimarycolour?: string;
174
- }
175
- /**
176
- * Check if a given object implements the SyncProductNetsuiteProductRequest interface.
177
- */
178
- export declare function instanceOfSyncProductNetsuiteProductRequest(value: object): value is SyncProductNetsuiteProductRequest;
179
- export declare function SyncProductNetsuiteProductRequestFromJSON(json: any): SyncProductNetsuiteProductRequest;
180
- export declare function SyncProductNetsuiteProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncProductNetsuiteProductRequest;
181
- export declare function SyncProductNetsuiteProductRequestToJSON(json: any): SyncProductNetsuiteProductRequest;
182
- export declare function SyncProductNetsuiteProductRequestToJSONTyped(value?: SyncProductNetsuiteProductRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,101 +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.instanceOfSyncProductNetsuiteProductRequest = instanceOfSyncProductNetsuiteProductRequest;
17
- exports.SyncProductNetsuiteProductRequestFromJSON = SyncProductNetsuiteProductRequestFromJSON;
18
- exports.SyncProductNetsuiteProductRequestFromJSONTyped = SyncProductNetsuiteProductRequestFromJSONTyped;
19
- exports.SyncProductNetsuiteProductRequestToJSON = SyncProductNetsuiteProductRequestToJSON;
20
- exports.SyncProductNetsuiteProductRequestToJSONTyped = SyncProductNetsuiteProductRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the SyncProductNetsuiteProductRequest interface.
23
- */
24
- function instanceOfSyncProductNetsuiteProductRequest(value) {
25
- if (!('internalId' in value) || value['internalId'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function SyncProductNetsuiteProductRequestFromJSON(json) {
30
- return SyncProductNetsuiteProductRequestFromJSONTyped(json, false);
31
- }
32
- function SyncProductNetsuiteProductRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'internalId': json['internalId'],
38
- 'productType': json['productType'] == null ? undefined : json['productType'],
39
- 'upccode': json['upccode'] == null ? undefined : json['upccode'],
40
- 'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
41
- 'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
42
- 'weight': json['weight'] == null ? undefined : json['weight'],
43
- 'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
44
- 'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
45
- 'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
46
- 'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
47
- 'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
48
- 'oversized': json['oversized'] == null ? undefined : json['oversized'],
49
- 'isBundle': json['is_bundle'] == null ? undefined : json['is_bundle'],
50
- 'bundleUpccode': json['bundle_upccode'] == null ? undefined : json['bundle_upccode'],
51
- 'published': json['published'] == null ? undefined : json['published'],
52
- 'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
53
- 'liPrice': json['li_price'] == null ? undefined : json['li_price'],
54
- 'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
55
- 'labelLi': json['label_li'] == null ? undefined : json['label_li'],
56
- 'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
57
- 'priceFeedLi': json['price_feed_li'] == null ? undefined : json['price_feed_li'],
58
- 'priceFeedCfd': json['price_feed_cfd'] == null ? undefined : json['price_feed_cfd'],
59
- 'socialFeed': json['social_feed'] == null ? undefined : json['social_feed'],
60
- 'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
61
- 'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
62
- 'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
63
- };
64
- }
65
- function SyncProductNetsuiteProductRequestToJSON(json) {
66
- return SyncProductNetsuiteProductRequestToJSONTyped(json, false);
67
- }
68
- function SyncProductNetsuiteProductRequestToJSONTyped(value, ignoreDiscriminator) {
69
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
70
- if (value == null) {
71
- return value;
72
- }
73
- return {
74
- 'internalId': value['internalId'],
75
- 'productType': value['productType'],
76
- 'upccode': value['upccode'],
77
- 'vendorname': value['vendorname'],
78
- 'custitem_anx_retail_id': value['custitemAnxRetailId'],
79
- 'weight': value['weight'],
80
- 'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
81
- 'online_location_cost': value['onlineLocationCost'],
82
- 'popularity_score': value['popularityScore'],
83
- 'exclude_frontend': value['excludeFrontend'],
84
- 'exclude_search': value['excludeSearch'],
85
- 'oversized': value['oversized'],
86
- 'is_bundle': value['isBundle'],
87
- 'bundle_upccode': value['bundleUpccode'],
88
- 'published': value['published'],
89
- 'custitemrrp_gst': value['custitemrrpGst'],
90
- 'li_price': value['liPrice'],
91
- 'cfd_price': value['cfdPrice'],
92
- 'label_li': value['labelLi'],
93
- 'label_cfd': value['labelCfd'],
94
- 'price_feed_li': value['priceFeedLi'],
95
- 'price_feed_cfd': value['priceFeedCfd'],
96
- 'social_feed': value['socialFeed'],
97
- 'attrib_room': value['attribRoom'],
98
- 'attrib_style': value['attribStyle'],
99
- 'attrib_primarycolour': value['attribPrimarycolour'],
100
- };
101
- }
@@ -1,74 +0,0 @@
1
- # NetsuiteApi
2
-
3
- All URIs are relative to *http://localhost/api*
4
-
5
- | Method | HTTP request | Description |
6
- |------------- | ------------- | -------------|
7
- | [**syncProductNetsuiteProduct**](NetsuiteApi.md#syncproductnetsuiteproductoperation) | **POST** /admin-api/netsuite/products/sync | Auto-generated: syncProductNetsuiteProduct |
8
-
9
-
10
-
11
- ## syncProductNetsuiteProduct
12
-
13
- > GenericResponse syncProductNetsuiteProduct(syncProductNetsuiteProductRequest)
14
-
15
- Auto-generated: syncProductNetsuiteProduct
16
-
17
- ### Example
18
-
19
- ```ts
20
- import {
21
- Configuration,
22
- NetsuiteApi,
23
- } from '@digital8/lighting-illusions-ts-sdk';
24
- import type { SyncProductNetsuiteProductOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
25
-
26
- async function example() {
27
- console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
28
- const api = new NetsuiteApi();
29
-
30
- const body = {
31
- // SyncProductNetsuiteProductRequest (optional)
32
- syncProductNetsuiteProductRequest: ...,
33
- } satisfies SyncProductNetsuiteProductOperationRequest;
34
-
35
- try {
36
- const data = await api.syncProductNetsuiteProduct(body);
37
- console.log(data);
38
- } catch (error) {
39
- console.error(error);
40
- }
41
- }
42
-
43
- // Run the test
44
- example().catch(console.error);
45
- ```
46
-
47
- ### Parameters
48
-
49
-
50
- | Name | Type | Description | Notes |
51
- |------------- | ------------- | ------------- | -------------|
52
- | **syncProductNetsuiteProductRequest** | [SyncProductNetsuiteProductRequest](SyncProductNetsuiteProductRequest.md) | | [Optional] |
53
-
54
- ### Return type
55
-
56
- [**GenericResponse**](GenericResponse.md)
57
-
58
- ### Authorization
59
-
60
- No authorization required
61
-
62
- ### HTTP request headers
63
-
64
- - **Content-Type**: `application/json`
65
- - **Accept**: `application/json`
66
-
67
-
68
- ### HTTP response details
69
- | Status code | Description | Response headers |
70
- |-------------|-------------|------------------|
71
- | **200** | \\JsonResponse | - |
72
-
73
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
74
-