@digital8/lighting-illusions-ts-sdk 0.0.2676 → 0.0.2678
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 +2 -0
- package/README.md +2 -2
- package/dist/apis/CustomersApi.d.ts +12 -1
- package/dist/apis/CustomersApi.js +46 -0
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +2 -6
- package/dist/models/CreateMenuItemRequestMenuItemLink.d.ts +2 -1
- package/dist/models/CreateMenuItemRequestMenuItemLink.js +2 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/LoginAsCustomerUrlResource.d.ts +32 -0
- package/dist/models/LoginAsCustomerUrlResource.js +51 -0
- package/dist/models/LoginAsCustomerUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/LoginAsCustomerUrlResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +1 -1
- package/dist/models/OrderFulfillmentResource.js +3 -1
- package/dist/models/SearchLinkablesRequest.d.ts +2 -1
- package/dist/models/SearchLinkablesRequest.js +2 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/CustomersApi.ts +44 -0
- package/src/models/AddressFrontendResource.ts +4 -6
- package/src/models/CreateMenuItemRequestMenuItemLink.ts +2 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/LoginAsCustomerUrlResource.ts +66 -0
- package/src/models/LoginAsCustomerUrlResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +3 -2
- package/src/models/SearchLinkablesRequest.ts +2 -1
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -295,6 +295,8 @@ src/models/LineItemListResource.ts
|
|
|
295
295
|
src/models/LineItemListResourceArrayResponse.ts
|
|
296
296
|
src/models/LinkOverlayTemplateToAssetsRequest.ts
|
|
297
297
|
src/models/LoginAdminRequest.ts
|
|
298
|
+
src/models/LoginAsCustomerUrlResource.ts
|
|
299
|
+
src/models/LoginAsCustomerUrlResourceArrayResponse.ts
|
|
298
300
|
src/models/MenuFrontendResource.ts
|
|
299
301
|
src/models/MenuFrontendResourceArrayResponse.ts
|
|
300
302
|
src/models/MenuIdRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
## @digital8/lighting-illusions-ts-sdk@0.0.2678
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/lighting-illusions-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/lighting-illusions-ts-sdk@0.0.2678 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddressResource, CreateCustomerAddressRequest, CreateCustomerRequest, CustomerLiteResourceArrayResponse, CustomerResource, GenericResponse, PaginatedCustomerListResourceResponse, SearchAllCustomersRequest, SearchCustomersRequest, UpdateCustomerAddressRequest, UpdateCustomerRequest } from '../models/index';
|
|
13
|
+
import type { AddressResource, CreateCustomerAddressRequest, CreateCustomerRequest, CustomerLiteResourceArrayResponse, CustomerResource, GenericResponse, LoginAsCustomerUrlResource, PaginatedCustomerListResourceResponse, SearchAllCustomersRequest, SearchCustomersRequest, UpdateCustomerAddressRequest, UpdateCustomerRequest } from '../models/index';
|
|
14
14
|
export interface DestroyCustomerRequest {
|
|
15
15
|
customer: number;
|
|
16
16
|
}
|
|
@@ -24,6 +24,9 @@ export interface GetAllCustomerRequest {
|
|
|
24
24
|
export interface IndexCustomerRequest {
|
|
25
25
|
searchCustomersRequest?: SearchCustomersRequest;
|
|
26
26
|
}
|
|
27
|
+
export interface LoginAsCustomerImpersonationRequest {
|
|
28
|
+
customer: number;
|
|
29
|
+
}
|
|
27
30
|
export interface ShowCustomerRequest {
|
|
28
31
|
customer: number;
|
|
29
32
|
}
|
|
@@ -79,6 +82,14 @@ export declare class CustomersApi extends runtime.BaseAPI {
|
|
|
79
82
|
* Auto-generated: indexCustomer
|
|
80
83
|
*/
|
|
81
84
|
indexCustomer(requestParameters?: IndexCustomerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedCustomerListResourceResponse>;
|
|
85
|
+
/**
|
|
86
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
87
|
+
*/
|
|
88
|
+
loginAsCustomerImpersonationRaw(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginAsCustomerUrlResource>>;
|
|
89
|
+
/**
|
|
90
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
91
|
+
*/
|
|
92
|
+
loginAsCustomerImpersonation(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginAsCustomerUrlResource>;
|
|
82
93
|
/**
|
|
83
94
|
* Auto-generated: showCustomer
|
|
84
95
|
*/
|
|
@@ -261,6 +261,52 @@ var CustomersApi = /** @class */ (function (_super) {
|
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
263
|
};
|
|
264
|
+
/**
|
|
265
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
266
|
+
*/
|
|
267
|
+
CustomersApi.prototype.loginAsCustomerImpersonationRaw = function (requestParameters, initOverrides) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
269
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
270
|
+
return __generator(this, function (_a) {
|
|
271
|
+
switch (_a.label) {
|
|
272
|
+
case 0:
|
|
273
|
+
if (requestParameters['customer'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('customer', 'Required parameter "customer" was null or undefined when calling loginAsCustomerImpersonation().');
|
|
275
|
+
}
|
|
276
|
+
queryParameters = {};
|
|
277
|
+
headerParameters = {};
|
|
278
|
+
urlPath = "/admin-api/customers/{customer}/login-as";
|
|
279
|
+
urlPath = urlPath.replace("{".concat("customer", "}"), encodeURIComponent(String(requestParameters['customer'])));
|
|
280
|
+
return [4 /*yield*/, this.request({
|
|
281
|
+
path: urlPath,
|
|
282
|
+
method: 'POST',
|
|
283
|
+
headers: headerParameters,
|
|
284
|
+
query: queryParameters,
|
|
285
|
+
}, initOverrides)];
|
|
286
|
+
case 1:
|
|
287
|
+
response = _a.sent();
|
|
288
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LoginAsCustomerUrlResourceFromJSON)(jsonValue); })];
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
295
|
+
*/
|
|
296
|
+
CustomersApi.prototype.loginAsCustomerImpersonation = function (requestParameters, initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
298
|
+
var response;
|
|
299
|
+
return __generator(this, function (_a) {
|
|
300
|
+
switch (_a.label) {
|
|
301
|
+
case 0: return [4 /*yield*/, this.loginAsCustomerImpersonationRaw(requestParameters, initOverrides)];
|
|
302
|
+
case 1:
|
|
303
|
+
response = _a.sent();
|
|
304
|
+
return [4 /*yield*/, response.value()];
|
|
305
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
};
|
|
264
310
|
/**
|
|
265
311
|
* Auto-generated: showCustomer
|
|
266
312
|
*/
|
|
@@ -32,13 +32,13 @@ export interface AddressFrontendResource {
|
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof AddressFrontendResource
|
|
34
34
|
*/
|
|
35
|
-
addresseeName
|
|
35
|
+
addresseeName?: string | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -22,10 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
26
|
return false;
|
|
31
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -50,8 +46,8 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
46
|
return {
|
|
51
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
53
|
-
'addresseeName': json['addresseeName'],
|
|
54
|
-
'company': json['company'],
|
|
49
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
50
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
55
51
|
'line1': json['line1'],
|
|
56
52
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
57
53
|
'postcode': json['postcode'],
|
|
@@ -46,7 +46,8 @@ export interface CreateMenuItemRequestMenuItemLink {
|
|
|
46
46
|
export declare const CreateMenuItemRequestMenuItemLinkLinkableTypeEnum: {
|
|
47
47
|
readonly ProductCategory: "productCategory";
|
|
48
48
|
readonly Tag: "tag";
|
|
49
|
-
readonly
|
|
49
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
50
|
+
readonly Page: "page";
|
|
50
51
|
};
|
|
51
52
|
export type CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum[keyof typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum];
|
|
52
53
|
/**
|
|
@@ -25,7 +25,8 @@ exports.CreateMenuItemRequestMenuItemLinkToJSONTyped = CreateMenuItemRequestMenu
|
|
|
25
25
|
exports.CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = {
|
|
26
26
|
ProductCategory: 'productCategory',
|
|
27
27
|
Tag: 'tag',
|
|
28
|
-
|
|
28
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
29
|
+
Page: 'page'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the CreateMenuItemRequestMenuItemLink interface.
|
|
@@ -39,8 +39,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -63,7 +61,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
61
|
'endpoint': json['endpoint'],
|
|
64
62
|
'responseCode': json['responseCode'],
|
|
65
63
|
'isSuccess': json['isSuccess'],
|
|
66
|
-
'requestPayload': json['requestPayload'],
|
|
64
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
67
65
|
'responsePayload': json['responsePayload'],
|
|
68
66
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
69
67
|
'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 LoginAsCustomerUrlResource
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginAsCustomerUrlResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginAsCustomerUrlResource
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfLoginAsCustomerUrlResource(value: object): value is LoginAsCustomerUrlResource;
|
|
29
|
+
export declare function LoginAsCustomerUrlResourceFromJSON(json: any): LoginAsCustomerUrlResource;
|
|
30
|
+
export declare function LoginAsCustomerUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResource;
|
|
31
|
+
export declare function LoginAsCustomerUrlResourceToJSON(json: any): LoginAsCustomerUrlResource;
|
|
32
|
+
export declare function LoginAsCustomerUrlResourceToJSONTyped(value?: LoginAsCustomerUrlResource | 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.instanceOfLoginAsCustomerUrlResource = instanceOfLoginAsCustomerUrlResource;
|
|
17
|
+
exports.LoginAsCustomerUrlResourceFromJSON = LoginAsCustomerUrlResourceFromJSON;
|
|
18
|
+
exports.LoginAsCustomerUrlResourceFromJSONTyped = LoginAsCustomerUrlResourceFromJSONTyped;
|
|
19
|
+
exports.LoginAsCustomerUrlResourceToJSON = LoginAsCustomerUrlResourceToJSON;
|
|
20
|
+
exports.LoginAsCustomerUrlResourceToJSONTyped = LoginAsCustomerUrlResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginAsCustomerUrlResource(value) {
|
|
25
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LoginAsCustomerUrlResourceFromJSON(json) {
|
|
30
|
+
return LoginAsCustomerUrlResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LoginAsCustomerUrlResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'url': json['url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function LoginAsCustomerUrlResourceToJSON(json) {
|
|
41
|
+
return LoginAsCustomerUrlResourceToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function LoginAsCustomerUrlResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'url': value['url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { LoginAsCustomerUrlResource } from './LoginAsCustomerUrlResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface LoginAsCustomerUrlResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface LoginAsCustomerUrlResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LoginAsCustomerUrlResource>}
|
|
22
|
+
* @memberof LoginAsCustomerUrlResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<LoginAsCustomerUrlResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfLoginAsCustomerUrlResourceArrayResponse(value: object): value is LoginAsCustomerUrlResourceArrayResponse;
|
|
30
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseFromJSON(json: any): LoginAsCustomerUrlResourceArrayResponse;
|
|
31
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResourceArrayResponse;
|
|
32
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseToJSON(json: any): LoginAsCustomerUrlResourceArrayResponse;
|
|
33
|
+
export declare function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value?: LoginAsCustomerUrlResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfLoginAsCustomerUrlResourceArrayResponse = instanceOfLoginAsCustomerUrlResourceArrayResponse;
|
|
17
|
+
exports.LoginAsCustomerUrlResourceArrayResponseFromJSON = LoginAsCustomerUrlResourceArrayResponseFromJSON;
|
|
18
|
+
exports.LoginAsCustomerUrlResourceArrayResponseFromJSONTyped = LoginAsCustomerUrlResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.LoginAsCustomerUrlResourceArrayResponseToJSON = LoginAsCustomerUrlResourceArrayResponseToJSON;
|
|
20
|
+
exports.LoginAsCustomerUrlResourceArrayResponseToJSONTyped = LoginAsCustomerUrlResourceArrayResponseToJSONTyped;
|
|
21
|
+
var LoginAsCustomerUrlResource_1 = require("./LoginAsCustomerUrlResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfLoginAsCustomerUrlResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function LoginAsCustomerUrlResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(LoginAsCustomerUrlResource_1.LoginAsCustomerUrlResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function LoginAsCustomerUrlResourceArrayResponseToJSON(json) {
|
|
40
|
+
return LoginAsCustomerUrlResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(LoginAsCustomerUrlResource_1.LoginAsCustomerUrlResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -31,6 +31,8 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -52,7 +54,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
53
55
|
'trackingNumber': json['trackingNumber'],
|
|
54
56
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
55
|
-
'trackingCompany': json['trackingCompany']
|
|
57
|
+
'trackingCompany': json['trackingCompany'],
|
|
56
58
|
'docnum': json['docnum'],
|
|
57
59
|
'netsuiteId': json['netsuiteId'],
|
|
58
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -40,7 +40,8 @@ export interface SearchLinkablesRequest {
|
|
|
40
40
|
export declare const SearchLinkablesRequestTypesEnum: {
|
|
41
41
|
readonly ProductCategory: "productCategory";
|
|
42
42
|
readonly Tag: "tag";
|
|
43
|
-
readonly
|
|
43
|
+
readonly ProductRangeSiteDetail: "productRangeSiteDetail";
|
|
44
|
+
readonly Page: "page";
|
|
44
45
|
};
|
|
45
46
|
export type SearchLinkablesRequestTypesEnum = typeof SearchLinkablesRequestTypesEnum[keyof typeof SearchLinkablesRequestTypesEnum];
|
|
46
47
|
/**
|
|
@@ -25,7 +25,8 @@ exports.SearchLinkablesRequestToJSONTyped = SearchLinkablesRequestToJSONTyped;
|
|
|
25
25
|
exports.SearchLinkablesRequestTypesEnum = {
|
|
26
26
|
ProductCategory: 'productCategory',
|
|
27
27
|
Tag: 'tag',
|
|
28
|
-
|
|
28
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
29
|
+
Page: 'page'
|
|
29
30
|
};
|
|
30
31
|
/**
|
|
31
32
|
* Check if a given object implements the SearchLinkablesRequest interface.
|
|
@@ -37,8 +37,6 @@ function instanceOfStoreListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -61,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
59
|
'latitude': json['latitude'],
|
|
62
60
|
'tagLine': json['tagLine'],
|
|
63
61
|
'email': json['email'],
|
|
64
|
-
'website': json['website'],
|
|
62
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
65
63
|
'netsuiteId': json['netsuiteId'],
|
|
66
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
67
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -36,8 +36,6 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
40
|
return false;
|
|
43
41
|
if (!('website' in value) || value['website'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'phone': json['phone'],
|
|
69
67
|
'longitude': json['longitude'],
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
|
-
'tagLine': json['tagLine'],
|
|
69
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
71
|
'website': json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {object}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date: object;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -26,6 +26,8 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -45,7 +47,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
46
48
|
'name': json['name'],
|
|
47
49
|
'hours': json['hours'],
|
|
48
|
-
'date': json['date']
|
|
50
|
+
'date': json['date'],
|
|
49
51
|
'closed': json['closed'],
|
|
50
52
|
'displayStartDate': json['displayStartDate'],
|
|
51
53
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -250,6 +250,8 @@ export * from './LineItemListResource';
|
|
|
250
250
|
export * from './LineItemListResourceArrayResponse';
|
|
251
251
|
export * from './LinkOverlayTemplateToAssetsRequest';
|
|
252
252
|
export * from './LoginAdminRequest';
|
|
253
|
+
export * from './LoginAsCustomerUrlResource';
|
|
254
|
+
export * from './LoginAsCustomerUrlResourceArrayResponse';
|
|
253
255
|
export * from './MenuFrontendResource';
|
|
254
256
|
export * from './MenuFrontendResourceArrayResponse';
|
|
255
257
|
export * from './MenuIdRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -268,6 +268,8 @@ __exportStar(require("./LineItemListResource"), exports);
|
|
|
268
268
|
__exportStar(require("./LineItemListResourceArrayResponse"), exports);
|
|
269
269
|
__exportStar(require("./LinkOverlayTemplateToAssetsRequest"), exports);
|
|
270
270
|
__exportStar(require("./LoginAdminRequest"), exports);
|
|
271
|
+
__exportStar(require("./LoginAsCustomerUrlResource"), exports);
|
|
272
|
+
__exportStar(require("./LoginAsCustomerUrlResourceArrayResponse"), exports);
|
|
271
273
|
__exportStar(require("./MenuFrontendResource"), exports);
|
|
272
274
|
__exportStar(require("./MenuFrontendResourceArrayResponse"), exports);
|
|
273
275
|
__exportStar(require("./MenuIdRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/CustomersApi.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type {
|
|
|
21
21
|
CustomerLiteResourceArrayResponse,
|
|
22
22
|
CustomerResource,
|
|
23
23
|
GenericResponse,
|
|
24
|
+
LoginAsCustomerUrlResource,
|
|
24
25
|
PaginatedCustomerListResourceResponse,
|
|
25
26
|
SearchAllCustomersRequest,
|
|
26
27
|
SearchCustomersRequest,
|
|
@@ -40,6 +41,8 @@ import {
|
|
|
40
41
|
CustomerResourceToJSON,
|
|
41
42
|
GenericResponseFromJSON,
|
|
42
43
|
GenericResponseToJSON,
|
|
44
|
+
LoginAsCustomerUrlResourceFromJSON,
|
|
45
|
+
LoginAsCustomerUrlResourceToJSON,
|
|
43
46
|
PaginatedCustomerListResourceResponseFromJSON,
|
|
44
47
|
PaginatedCustomerListResourceResponseToJSON,
|
|
45
48
|
SearchAllCustomersRequestFromJSON,
|
|
@@ -69,6 +72,10 @@ export interface IndexCustomerRequest {
|
|
|
69
72
|
searchCustomersRequest?: SearchCustomersRequest;
|
|
70
73
|
}
|
|
71
74
|
|
|
75
|
+
export interface LoginAsCustomerImpersonationRequest {
|
|
76
|
+
customer: number;
|
|
77
|
+
}
|
|
78
|
+
|
|
72
79
|
export interface ShowCustomerRequest {
|
|
73
80
|
customer: number;
|
|
74
81
|
}
|
|
@@ -244,6 +251,43 @@ export class CustomersApi extends runtime.BaseAPI {
|
|
|
244
251
|
return await response.value();
|
|
245
252
|
}
|
|
246
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
256
|
+
*/
|
|
257
|
+
async loginAsCustomerImpersonationRaw(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginAsCustomerUrlResource>> {
|
|
258
|
+
if (requestParameters['customer'] == null) {
|
|
259
|
+
throw new runtime.RequiredError(
|
|
260
|
+
'customer',
|
|
261
|
+
'Required parameter "customer" was null or undefined when calling loginAsCustomerImpersonation().'
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
const queryParameters: any = {};
|
|
266
|
+
|
|
267
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
let urlPath = `/admin-api/customers/{customer}/login-as`;
|
|
271
|
+
urlPath = urlPath.replace(`{${"customer"}}`, encodeURIComponent(String(requestParameters['customer'])));
|
|
272
|
+
|
|
273
|
+
const response = await this.request({
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'POST',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
}, initOverrides);
|
|
279
|
+
|
|
280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LoginAsCustomerUrlResourceFromJSON(jsonValue));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Auto-generated: loginAsCustomerImpersonation
|
|
285
|
+
*/
|
|
286
|
+
async loginAsCustomerImpersonation(requestParameters: LoginAsCustomerImpersonationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginAsCustomerUrlResource> {
|
|
287
|
+
const response = await this.loginAsCustomerImpersonationRaw(requestParameters, initOverrides);
|
|
288
|
+
return await response.value();
|
|
289
|
+
}
|
|
290
|
+
|
|
247
291
|
/**
|
|
248
292
|
* Auto-generated: showCustomer
|
|
249
293
|
*/
|
|
@@ -36,13 +36,13 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
addresseeName
|
|
39
|
+
addresseeName?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -91,8 +91,6 @@ export interface AddressFrontendResource {
|
|
|
91
91
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
92
92
|
*/
|
|
93
93
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
94
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
95
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
96
94
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
97
95
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
98
96
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -114,8 +112,8 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
114
112
|
|
|
115
113
|
'id': json['id'] == null ? undefined : json['id'],
|
|
116
114
|
'type': json['type'] == null ? undefined : json['type'],
|
|
117
|
-
'addresseeName': json['addresseeName'],
|
|
118
|
-
'company': json['company'],
|
|
115
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
116
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
119
117
|
'line1': json['line1'],
|
|
120
118
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
121
119
|
'postcode': json['postcode'],
|
|
@@ -52,7 +52,8 @@ export interface CreateMenuItemRequestMenuItemLink {
|
|
|
52
52
|
export const CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = {
|
|
53
53
|
ProductCategory: 'productCategory',
|
|
54
54
|
Tag: 'tag',
|
|
55
|
-
|
|
55
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
56
|
+
Page: 'page'
|
|
56
57
|
} as const;
|
|
57
58
|
export type CreateMenuItemRequestMenuItemLinkLinkableTypeEnum = typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum[keyof typeof CreateMenuItemRequestMenuItemLinkLinkableTypeEnum];
|
|
58
59
|
|
|
@@ -80,7 +80,7 @@ export interface ExternalApiLogResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof ExternalApiLogResource
|
|
82
82
|
*/
|
|
83
|
-
requestPayload
|
|
83
|
+
requestPayload?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {string}
|
|
@@ -113,7 +113,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
113
113
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
114
114
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
115
115
|
if (!('isSuccess' in value) || value['isSuccess'] === undefined) return false;
|
|
116
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
117
116
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
118
117
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
119
118
|
return true;
|
|
@@ -137,7 +136,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
137
136
|
'endpoint': json['endpoint'],
|
|
138
137
|
'responseCode': json['responseCode'],
|
|
139
138
|
'isSuccess': json['isSuccess'],
|
|
140
|
-
'requestPayload': json['requestPayload'],
|
|
139
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
141
140
|
'responsePayload': json['responsePayload'],
|
|
142
141
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
143
142
|
'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 LoginAsCustomerUrlResource
|
|
20
|
+
*/
|
|
21
|
+
export interface LoginAsCustomerUrlResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LoginAsCustomerUrlResource
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the LoginAsCustomerUrlResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfLoginAsCustomerUrlResource(value: object): value is LoginAsCustomerUrlResource {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function LoginAsCustomerUrlResourceFromJSON(json: any): LoginAsCustomerUrlResource {
|
|
39
|
+
return LoginAsCustomerUrlResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function LoginAsCustomerUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LoginAsCustomerUrlResourceToJSON(json: any): LoginAsCustomerUrlResource {
|
|
53
|
+
return LoginAsCustomerUrlResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LoginAsCustomerUrlResourceToJSONTyped(value?: LoginAsCustomerUrlResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { LoginAsCustomerUrlResource } from './LoginAsCustomerUrlResource';
|
|
17
|
+
import {
|
|
18
|
+
LoginAsCustomerUrlResourceFromJSON,
|
|
19
|
+
LoginAsCustomerUrlResourceFromJSONTyped,
|
|
20
|
+
LoginAsCustomerUrlResourceToJSON,
|
|
21
|
+
LoginAsCustomerUrlResourceToJSONTyped,
|
|
22
|
+
} from './LoginAsCustomerUrlResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LoginAsCustomerUrlResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface LoginAsCustomerUrlResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<LoginAsCustomerUrlResource>}
|
|
33
|
+
* @memberof LoginAsCustomerUrlResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<LoginAsCustomerUrlResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the LoginAsCustomerUrlResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfLoginAsCustomerUrlResourceArrayResponse(value: object): value is LoginAsCustomerUrlResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function LoginAsCustomerUrlResourceArrayResponseFromJSON(json: any): LoginAsCustomerUrlResourceArrayResponse {
|
|
46
|
+
return LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function LoginAsCustomerUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAsCustomerUrlResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LoginAsCustomerUrlResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LoginAsCustomerUrlResourceArrayResponseToJSON(json: any): LoginAsCustomerUrlResourceArrayResponse {
|
|
60
|
+
return LoginAsCustomerUrlResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function LoginAsCustomerUrlResourceArrayResponseToJSONTyped(value?: LoginAsCustomerUrlResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(LoginAsCustomerUrlResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -62,7 +62,7 @@ export interface OrderFulfillmentResource {
|
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof OrderFulfillmentResource
|
|
64
64
|
*/
|
|
65
|
-
trackingCompany
|
|
65
|
+
trackingCompany: string;
|
|
66
66
|
/**
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
@@ -103,6 +103,7 @@ export function instanceOfOrderFulfillmentResource(value: object): value is Orde
|
|
|
103
103
|
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
104
104
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined) return false;
|
|
105
105
|
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined) return false;
|
|
106
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
106
107
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
107
108
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
108
109
|
if (!('orderFulfillmentLineItems' in value) || value['orderFulfillmentLineItems'] === undefined) return false;
|
|
@@ -124,7 +125,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
124
125
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
125
126
|
'trackingNumber': json['trackingNumber'],
|
|
126
127
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
127
|
-
'trackingCompany': json['trackingCompany']
|
|
128
|
+
'trackingCompany': json['trackingCompany'],
|
|
128
129
|
'docnum': json['docnum'],
|
|
129
130
|
'netsuiteId': json['netsuiteId'],
|
|
130
131
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -46,7 +46,8 @@ export interface SearchLinkablesRequest {
|
|
|
46
46
|
export const SearchLinkablesRequestTypesEnum = {
|
|
47
47
|
ProductCategory: 'productCategory',
|
|
48
48
|
Tag: 'tag',
|
|
49
|
-
|
|
49
|
+
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
50
|
+
Page: 'page'
|
|
50
51
|
} as const;
|
|
51
52
|
export type SearchLinkablesRequestTypesEnum = typeof SearchLinkablesRequestTypesEnum[keyof typeof SearchLinkablesRequestTypesEnum];
|
|
52
53
|
|
|
@@ -80,7 +80,7 @@ export interface StoreListResource {
|
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof StoreListResource
|
|
82
82
|
*/
|
|
83
|
-
website
|
|
83
|
+
website?: string | null;
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @type {number}
|
|
@@ -112,7 +112,6 @@ 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;
|
|
116
115
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
117
116
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
118
117
|
return true;
|
|
@@ -136,7 +135,7 @@ export function StoreListResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
136
135
|
'latitude': json['latitude'],
|
|
137
136
|
'tagLine': json['tagLine'],
|
|
138
137
|
'email': json['email'],
|
|
139
|
-
'website': json['website'],
|
|
138
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
140
139
|
'netsuiteId': json['netsuiteId'],
|
|
141
140
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
142
141
|
'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}
|
|
@@ -149,7 +149,6 @@ 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;
|
|
154
153
|
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -176,7 +175,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
176
175
|
'phone': json['phone'],
|
|
177
176
|
'longitude': json['longitude'],
|
|
178
177
|
'latitude': json['latitude'],
|
|
179
|
-
'tagLine': json['tagLine'],
|
|
178
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
180
179
|
'email': json['email'],
|
|
181
180
|
'website': json['website'],
|
|
182
181
|
'netsuiteId': json['netsuiteId'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date: object;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,6 +69,7 @@ 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;
|
|
72
73
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
73
74
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
74
75
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -88,7 +89,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
88
89
|
'id': json['id'] == null ? undefined : json['id'],
|
|
89
90
|
'name': json['name'],
|
|
90
91
|
'hours': json['hours'],
|
|
91
|
-
'date': json['date']
|
|
92
|
+
'date': json['date'],
|
|
92
93
|
'closed': json['closed'],
|
|
93
94
|
'displayStartDate': json['displayStartDate'],
|
|
94
95
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -252,6 +252,8 @@ export * from './LineItemListResource';
|
|
|
252
252
|
export * from './LineItemListResourceArrayResponse';
|
|
253
253
|
export * from './LinkOverlayTemplateToAssetsRequest';
|
|
254
254
|
export * from './LoginAdminRequest';
|
|
255
|
+
export * from './LoginAsCustomerUrlResource';
|
|
256
|
+
export * from './LoginAsCustomerUrlResourceArrayResponse';
|
|
255
257
|
export * from './MenuFrontendResource';
|
|
256
258
|
export * from './MenuFrontendResourceArrayResponse';
|
|
257
259
|
export * from './MenuIdRequest';
|