@digital8/lighting-illusions-ts-sdk 0.0.2262 → 0.0.2264
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.
- package/.openapi-generator/FILES +0 -10
- package/README.md +2 -7
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +2 -6
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/CategoryAutomationFieldType.d.ts +0 -2
- package/dist/models/CategoryAutomationFieldType.js +1 -3
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.d.ts +0 -2
- package/dist/models/CreateProductCategoryRequestAutomationRulesInner.js +1 -3
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +6 -2
- package/dist/models/ProductClassResource.d.ts +2 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/docs/ProductClassResource.md +1 -1
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +4 -6
- package/src/models/AddressResource.ts +3 -2
- package/src/models/CategoryAutomationFieldType.ts +1 -3
- package/src/models/CreateProductCategoryRequestAutomationRulesInner.ts +1 -3
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/OrderFulfillmentResource.ts +6 -4
- package/src/models/ProductClassResource.ts +2 -2
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +0 -4
- package/dist/apis/ProductClassApi.d.ts +0 -34
- package/dist/apis/ProductClassApi.js +0 -139
- package/dist/models/PaginatedProductClassLiteResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductClassLiteResourceResponse.js +0 -57
- package/dist/models/ProductClassLiteResource.d.ts +0 -44
- package/dist/models/ProductClassLiteResource.js +0 -57
- package/dist/models/ProductClassLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductClassLiteResourceArrayResponse.js +0 -50
- package/dist/models/SearchAllProductClassesRequest.d.ts +0 -78
- package/dist/models/SearchAllProductClassesRequest.js +0 -74
- package/docs/PaginatedProductClassLiteResourceResponse.md +0 -36
- package/docs/ProductClassApi.md +0 -74
- package/docs/ProductClassLiteResource.md +0 -38
- package/docs/ProductClassLiteResourceArrayResponse.md +0 -34
- package/docs/SearchAllProductClassesRequest.md +0 -44
- package/src/apis/ProductClassApi.ts +0 -76
- package/src/models/PaginatedProductClassLiteResourceResponse.ts +0 -90
- package/src/models/ProductClassLiteResource.ts +0 -83
- package/src/models/ProductClassLiteResourceArrayResponse.ts +0 -73
- package/src/models/SearchAllProductClassesRequest.ts +0 -125
|
@@ -68,9 +68,7 @@ export const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = {
|
|
|
68
68
|
Attribute: 'attribute',
|
|
69
69
|
Tag: 'tag',
|
|
70
70
|
Supplier: 'supplier',
|
|
71
|
-
Label: 'label'
|
|
72
|
-
ProductType: 'product_type',
|
|
73
|
-
ProductClass: 'product_class'
|
|
71
|
+
Label: 'label'
|
|
74
72
|
} as const;
|
|
75
73
|
export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum];
|
|
76
74
|
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ 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;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -50,13 +50,13 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof OrderFulfillmentResource
|
|
58
58
|
*/
|
|
59
|
-
trackingUrl
|
|
59
|
+
trackingUrl: string;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {string}
|
|
@@ -102,6 +102,8 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
102
102
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
|
+
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
|
+
if (!('trackingUrl' in value) || value['trackingUrl'] === undefined) return false;
|
|
105
107
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
106
108
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
107
109
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -122,8 +124,8 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
122
124
|
'id': json['id'],
|
|
123
125
|
'orderId': json['orderId'],
|
|
124
126
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
125
|
-
'trackingNumber': json['trackingNumber']
|
|
126
|
-
'trackingUrl': json['trackingUrl']
|
|
127
|
+
'trackingNumber': json['trackingNumber'],
|
|
128
|
+
'trackingUrl': json['trackingUrl'],
|
|
127
129
|
'trackingCompany': json['trackingCompany'],
|
|
128
130
|
'docnum': json['docnum'],
|
|
129
131
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -48,7 +48,7 @@ export interface StoreFrontendResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof StoreFrontendResource
|
|
50
50
|
*/
|
|
51
|
-
website
|
|
51
|
+
website: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
106
106
|
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
107
107
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
108
108
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
109
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
109
110
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
110
111
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
111
112
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
@@ -129,7 +130,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
129
130
|
'siteId': json['siteId'],
|
|
130
131
|
'name': json['name'],
|
|
131
132
|
'email': json['email'],
|
|
132
|
-
'website': json['website']
|
|
133
|
+
'website': json['website'],
|
|
133
134
|
'phone': json['phone'],
|
|
134
135
|
'address': json['address'] == null ? undefined : json['address'],
|
|
135
136
|
'latitude': json['latitude'],
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website: string;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -112,6 +112,7 @@ export function instanceOfStoreListResource(value: object): value is StoreListRe
|
|
|
112
112
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
113
113
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
114
114
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
115
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
115
116
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
116
117
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
117
118
|
return true;
|
|
@@ -135,7 +136,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
135
136
|
'latitude': json['latitude'],
|
|
136
137
|
'tagLine': json['tagLine'],
|
|
137
138
|
'email': json['email'],
|
|
138
|
-
'website': json['website']
|
|
139
|
+
'website': json['website'],
|
|
139
140
|
'netsuiteId': json['netsuiteId'],
|
|
140
141
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
141
142
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine?: string | null;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website: string;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -149,8 +149,8 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
149
149
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
150
150
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
152
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
153
|
+
if (!('website' in value) || value['website'] === undefined) return false;
|
|
154
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
155
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
156
156
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -175,9 +175,9 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
175
|
'phone': json['phone'],
|
|
176
176
|
'longitude': json['longitude'],
|
|
177
177
|
'latitude': json['latitude'],
|
|
178
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
179
179
|
'email': json['email'],
|
|
180
|
-
'website': json['website']
|
|
180
|
+
'website': json['website'],
|
|
181
181
|
'netsuiteId': json['netsuiteId'],
|
|
182
182
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
183
183
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -312,7 +312,6 @@ export * from './PaginatedProductChildLiteResourceResponse';
|
|
|
312
312
|
export * from './PaginatedProductChildOverlayRelationResourceResponse';
|
|
313
313
|
export * from './PaginatedProductChildRelationResourceResponse';
|
|
314
314
|
export * from './PaginatedProductChildResourceResponse';
|
|
315
|
-
export * from './PaginatedProductClassLiteResourceResponse';
|
|
316
315
|
export * from './PaginatedProductListResourceResponse';
|
|
317
316
|
export * from './PaginatedProductLiteResourceResponse';
|
|
318
317
|
export * from './PaginatedProductRangeFrontendListResourceResponse';
|
|
@@ -389,8 +388,6 @@ export * from './ProductChildSiteDetailLiteResource';
|
|
|
389
388
|
export * from './ProductChildSiteDetailLiteResourceArrayResponse';
|
|
390
389
|
export * from './ProductChildSiteDetailResource';
|
|
391
390
|
export * from './ProductChildSiteDetailResourceArrayResponse';
|
|
392
|
-
export * from './ProductClassLiteResource';
|
|
393
|
-
export * from './ProductClassLiteResourceArrayResponse';
|
|
394
391
|
export * from './ProductClassResource';
|
|
395
392
|
export * from './ProductClassResourceArrayResponse';
|
|
396
393
|
export * from './ProductCompareResource';
|
|
@@ -494,7 +491,6 @@ export * from './SearchAllPageComponentsRequest';
|
|
|
494
491
|
export * from './SearchAllPagesRequest';
|
|
495
492
|
export * from './SearchAllProductCategoriesRequest';
|
|
496
493
|
export * from './SearchAllProductChildrenRequest';
|
|
497
|
-
export * from './SearchAllProductClassesRequest';
|
|
498
494
|
export * from './SearchAllProductRangesRequest';
|
|
499
495
|
export * from './SearchAllProductRegistrationsRequest';
|
|
500
496
|
export * from './SearchAllProductTypesRequest';
|
|
@@ -1,34 +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 ProductClassLiteResourceArrayResponse } from '../models/ProductClassLiteResourceArrayResponse';
|
|
14
|
-
import { type SearchAllProductClassesRequest } from '../models/SearchAllProductClassesRequest';
|
|
15
|
-
export interface GetAllProductClassRequest {
|
|
16
|
-
searchAllProductClassesRequest?: SearchAllProductClassesRequest;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
export declare class ProductClassApi extends runtime.BaseAPI {
|
|
22
|
-
/**
|
|
23
|
-
* Creates request options for getAllProductClass without sending the request
|
|
24
|
-
*/
|
|
25
|
-
getAllProductClassRequestOpts(requestParameters: GetAllProductClassRequest): Promise<runtime.RequestOpts>;
|
|
26
|
-
/**
|
|
27
|
-
* Auto-generated: getAllProductClass
|
|
28
|
-
*/
|
|
29
|
-
getAllProductClassRaw(requestParameters: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductClassLiteResourceArrayResponse>>;
|
|
30
|
-
/**
|
|
31
|
-
* Auto-generated: getAllProductClass
|
|
32
|
-
*/
|
|
33
|
-
getAllProductClass(requestParameters?: GetAllProductClassRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductClassLiteResourceArrayResponse>;
|
|
34
|
-
}
|
|
@@ -1,139 +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.ProductClassApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var ProductClassLiteResourceArrayResponse_1 = require("../models/ProductClassLiteResourceArrayResponse");
|
|
70
|
-
var SearchAllProductClassesRequest_1 = require("../models/SearchAllProductClassesRequest");
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
var ProductClassApi = /** @class */ (function (_super) {
|
|
75
|
-
__extends(ProductClassApi, _super);
|
|
76
|
-
function ProductClassApi() {
|
|
77
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates request options for getAllProductClass without sending the request
|
|
81
|
-
*/
|
|
82
|
-
ProductClassApi.prototype.getAllProductClassRequestOpts = function (requestParameters) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, urlPath;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
queryParameters = {};
|
|
87
|
-
headerParameters = {};
|
|
88
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
89
|
-
urlPath = "/admin-api/product-class/all";
|
|
90
|
-
return [2 /*return*/, {
|
|
91
|
-
path: urlPath,
|
|
92
|
-
method: 'POST',
|
|
93
|
-
headers: headerParameters,
|
|
94
|
-
query: queryParameters,
|
|
95
|
-
body: (0, SearchAllProductClassesRequest_1.SearchAllProductClassesRequestToJSON)(requestParameters['searchAllProductClassesRequest']),
|
|
96
|
-
}];
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
};
|
|
100
|
-
/**
|
|
101
|
-
* Auto-generated: getAllProductClass
|
|
102
|
-
*/
|
|
103
|
-
ProductClassApi.prototype.getAllProductClassRaw = function (requestParameters, initOverrides) {
|
|
104
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
-
var requestOptions, response;
|
|
106
|
-
return __generator(this, function (_a) {
|
|
107
|
-
switch (_a.label) {
|
|
108
|
-
case 0: return [4 /*yield*/, this.getAllProductClassRequestOpts(requestParameters)];
|
|
109
|
-
case 1:
|
|
110
|
-
requestOptions = _a.sent();
|
|
111
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
112
|
-
case 2:
|
|
113
|
-
response = _a.sent();
|
|
114
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProductClassLiteResourceArrayResponse_1.ProductClassLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Auto-generated: getAllProductClass
|
|
121
|
-
*/
|
|
122
|
-
ProductClassApi.prototype.getAllProductClass = function () {
|
|
123
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
124
|
-
var response;
|
|
125
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
126
|
-
return __generator(this, function (_a) {
|
|
127
|
-
switch (_a.label) {
|
|
128
|
-
case 0: return [4 /*yield*/, this.getAllProductClassRaw(requestParameters, initOverrides)];
|
|
129
|
-
case 1:
|
|
130
|
-
response = _a.sent();
|
|
131
|
-
return [4 /*yield*/, response.value()];
|
|
132
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
return ProductClassApi;
|
|
138
|
-
}(runtime.BaseAPI));
|
|
139
|
-
exports.ProductClassApi = ProductClassApi;
|
|
@@ -1,40 +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 type { PagingMetadata } from './PagingMetadata';
|
|
13
|
-
import type { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedProductClassLiteResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedProductClassLiteResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<ProductClassLiteResource>}
|
|
23
|
-
* @memberof PaginatedProductClassLiteResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<ProductClassLiteResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedProductClassLiteResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedProductClassLiteResourceResponse(value: object): value is PaginatedProductClassLiteResourceResponse;
|
|
37
|
-
export declare function PaginatedProductClassLiteResourceResponseFromJSON(json: any): PaginatedProductClassLiteResourceResponse;
|
|
38
|
-
export declare function PaginatedProductClassLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductClassLiteResourceResponse;
|
|
39
|
-
export declare function PaginatedProductClassLiteResourceResponseToJSON(json: any): PaginatedProductClassLiteResourceResponse;
|
|
40
|
-
export declare function PaginatedProductClassLiteResourceResponseToJSONTyped(value?: PaginatedProductClassLiteResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +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.instanceOfPaginatedProductClassLiteResourceResponse = instanceOfPaginatedProductClassLiteResourceResponse;
|
|
17
|
-
exports.PaginatedProductClassLiteResourceResponseFromJSON = PaginatedProductClassLiteResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedProductClassLiteResourceResponseFromJSONTyped = PaginatedProductClassLiteResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedProductClassLiteResourceResponseToJSON = PaginatedProductClassLiteResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedProductClassLiteResourceResponseToJSONTyped = PaginatedProductClassLiteResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var ProductClassLiteResource_1 = require("./ProductClassLiteResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedProductClassLiteResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedProductClassLiteResourceResponse(value) {
|
|
27
|
-
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function PaginatedProductClassLiteResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedProductClassLiteResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedProductClassLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(ProductClassLiteResource_1.ProductClassLiteResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedProductClassLiteResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedProductClassLiteResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedProductClassLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(ProductClassLiteResource_1.ProductClassLiteResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,44 +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 ProductClassLiteResource
|
|
16
|
-
*/
|
|
17
|
-
export interface ProductClassLiteResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof ProductClassLiteResource
|
|
22
|
-
*/
|
|
23
|
-
id?: number | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof ProductClassLiteResource
|
|
28
|
-
*/
|
|
29
|
-
name: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof ProductClassLiteResource
|
|
34
|
-
*/
|
|
35
|
-
pathString: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the ProductClassLiteResource interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfProductClassLiteResource(value: object): value is ProductClassLiteResource;
|
|
41
|
-
export declare function ProductClassLiteResourceFromJSON(json: any): ProductClassLiteResource;
|
|
42
|
-
export declare function ProductClassLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResource;
|
|
43
|
-
export declare function ProductClassLiteResourceToJSON(json: any): ProductClassLiteResource;
|
|
44
|
-
export declare function ProductClassLiteResourceToJSONTyped(value?: ProductClassLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +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.instanceOfProductClassLiteResource = instanceOfProductClassLiteResource;
|
|
17
|
-
exports.ProductClassLiteResourceFromJSON = ProductClassLiteResourceFromJSON;
|
|
18
|
-
exports.ProductClassLiteResourceFromJSONTyped = ProductClassLiteResourceFromJSONTyped;
|
|
19
|
-
exports.ProductClassLiteResourceToJSON = ProductClassLiteResourceToJSON;
|
|
20
|
-
exports.ProductClassLiteResourceToJSONTyped = ProductClassLiteResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ProductClassLiteResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfProductClassLiteResource(value) {
|
|
25
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('pathString' in value) || value['pathString'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function ProductClassLiteResourceFromJSON(json) {
|
|
32
|
-
return ProductClassLiteResourceFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function ProductClassLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
40
|
-
'name': json['name'],
|
|
41
|
-
'pathString': json['pathString'],
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function ProductClassLiteResourceToJSON(json) {
|
|
45
|
-
return ProductClassLiteResourceToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function ProductClassLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'id': value['id'],
|
|
54
|
-
'name': value['name'],
|
|
55
|
-
'pathString': value['pathString'],
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,33 +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 type { ProductClassLiteResource } from './ProductClassLiteResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ProductClassLiteResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface ProductClassLiteResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<ProductClassLiteResource>}
|
|
22
|
-
* @memberof ProductClassLiteResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<ProductClassLiteResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the ProductClassLiteResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfProductClassLiteResourceArrayResponse(value: object): value is ProductClassLiteResourceArrayResponse;
|
|
30
|
-
export declare function ProductClassLiteResourceArrayResponseFromJSON(json: any): ProductClassLiteResourceArrayResponse;
|
|
31
|
-
export declare function ProductClassLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassLiteResourceArrayResponse;
|
|
32
|
-
export declare function ProductClassLiteResourceArrayResponseToJSON(json: any): ProductClassLiteResourceArrayResponse;
|
|
33
|
-
export declare function ProductClassLiteResourceArrayResponseToJSONTyped(value?: ProductClassLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|