@digital8/lighting-illusions-ts-sdk 0.0.2677 → 0.0.2679
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 +3 -3
- package/dist/models/AddressFrontendResource.js +7 -5
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- 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 +1 -3
- package/dist/models/SearchLinkablesRequest.d.ts +2 -1
- package/dist/models/SearchLinkablesRequest.js +2 -1
- 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 +1 -1
- package/dist/models/StoreResource.js +1 -3
- 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 +8 -7
- package/src/models/AddressResource.ts +6 -4
- 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 +2 -3
- package/src/models/SearchLinkablesRequest.ts +2 -1
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +2 -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.2679
|
|
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.2679 --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;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
company
|
|
41
|
+
company: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -50,7 +50,7 @@ export interface AddressFrontendResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof AddressFrontendResource
|
|
52
52
|
*/
|
|
53
|
-
line2
|
|
53
|
+
line2?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -22,9 +22,11 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
28
|
return false;
|
|
27
|
-
if (!('
|
|
29
|
+
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
32
|
return false;
|
|
@@ -48,10 +50,10 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
|
-
'addresseeName': json['addresseeName']
|
|
52
|
-
'company': json['company']
|
|
53
|
+
'addresseeName': json['addresseeName'],
|
|
54
|
+
'company': json['company'],
|
|
53
55
|
'line1': json['line1'],
|
|
54
|
-
'line2': json['line2'],
|
|
56
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
55
57
|
'postcode': json['postcode'],
|
|
56
58
|
'suburb': json['suburb'],
|
|
57
59
|
'country': json['country'],
|
|
@@ -38,13 +38,13 @@ export interface AddressResource {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof AddressResource
|
|
40
40
|
*/
|
|
41
|
-
addresseeName
|
|
41
|
+
addresseeName: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AddressResource
|
|
46
46
|
*/
|
|
47
|
-
company
|
|
47
|
+
company: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -22,6 +22,10 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
+
return false;
|
|
25
29
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
30
|
return false;
|
|
27
31
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -49,8 +53,8 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
53
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
54
|
'type': json['type'] == null ? undefined : json['type'],
|
|
51
55
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
52
|
-
'addresseeName': json['addresseeName']
|
|
53
|
-
'company': json['company']
|
|
56
|
+
'addresseeName': json['addresseeName'],
|
|
57
|
+
'company': json['company'],
|
|
54
58
|
'line1': json['line1'],
|
|
55
59
|
'line2': json['line2'],
|
|
56
60
|
'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
|
+
}
|
|
@@ -29,8 +29,6 @@ function instanceOfOrderFulfillmentResource(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('dateShipped' in value) || value['dateShipped'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
-
if (!('trackingNumber' in value) || value['trackingNumber'] === undefined)
|
|
33
|
-
return false;
|
|
34
32
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
33
|
return false;
|
|
36
34
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
@@ -52,7 +50,7 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'id': json['id'],
|
|
53
51
|
'orderId': json['orderId'],
|
|
54
52
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
|
-
'trackingNumber': json['trackingNumber'],
|
|
53
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
56
54
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
57
55
|
'trackingCompany': json['trackingCompany'],
|
|
58
56
|
'docnum': json['docnum'],
|
|
@@ -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.
|
|
@@ -28,6 +28,8 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -54,7 +56,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'siteId': json['siteId'],
|
|
55
57
|
'name': json['name'],
|
|
56
58
|
'email': json['email'],
|
|
57
|
-
'website': json['website']
|
|
59
|
+
'website': json['website'],
|
|
58
60
|
'phone': json['phone'],
|
|
59
61
|
'address': json['address'] == null ? undefined : json['address'],
|
|
60
62
|
'latitude': json['latitude'],
|
|
@@ -37,6 +37,8 @@ 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;
|
|
40
42
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -59,7 +61,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
61
|
'latitude': json['latitude'],
|
|
60
62
|
'tagLine': json['tagLine'],
|
|
61
63
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
64
|
+
'website': json['website'],
|
|
63
65
|
'netsuiteId': json['netsuiteId'],
|
|
64
66
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
67
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -40,8 +40,6 @@ function instanceOfStoreResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
44
|
-
return false;
|
|
45
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
46
44
|
return false;
|
|
47
45
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -70,7 +68,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
68
|
'latitude': json['latitude'],
|
|
71
69
|
'tagLine': json['tagLine'],
|
|
72
70
|
'email': json['email'],
|
|
73
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
74
72
|
'netsuiteId': json['netsuiteId'],
|
|
75
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
76
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
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;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
company
|
|
45
|
+
company: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -54,7 +54,7 @@ export interface AddressFrontendResource {
|
|
|
54
54
|
* @type {string}
|
|
55
55
|
* @memberof AddressFrontendResource
|
|
56
56
|
*/
|
|
57
|
-
line2
|
|
57
|
+
line2?: string | null;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
@@ -91,8 +91,9 @@ 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;
|
|
94
96
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
95
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
96
97
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
97
98
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
98
99
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -113,10 +114,10 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
113
114
|
|
|
114
115
|
'id': json['id'] == null ? undefined : json['id'],
|
|
115
116
|
'type': json['type'] == null ? undefined : json['type'],
|
|
116
|
-
'addresseeName': json['addresseeName']
|
|
117
|
-
'company': json['company']
|
|
117
|
+
'addresseeName': json['addresseeName'],
|
|
118
|
+
'company': json['company'],
|
|
118
119
|
'line1': json['line1'],
|
|
119
|
-
'line2': json['line2'],
|
|
120
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
120
121
|
'postcode': json['postcode'],
|
|
121
122
|
'suburb': json['suburb'],
|
|
122
123
|
'country': json['country'],
|
|
@@ -42,13 +42,13 @@ export interface AddressResource {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof AddressResource
|
|
44
44
|
*/
|
|
45
|
-
addresseeName
|
|
45
|
+
addresseeName: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AddressResource
|
|
50
50
|
*/
|
|
51
|
-
company
|
|
51
|
+
company: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
@@ -97,6 +97,8 @@ export interface AddressResource {
|
|
|
97
97
|
* Check if a given object implements the AddressResource interface.
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
100
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
101
103
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
102
104
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -120,8 +122,8 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
120
122
|
'id': json['id'] == null ? undefined : json['id'],
|
|
121
123
|
'type': json['type'] == null ? undefined : json['type'],
|
|
122
124
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
123
|
-
'addresseeName': json['addresseeName']
|
|
124
|
-
'company': json['company']
|
|
125
|
+
'addresseeName': json['addresseeName'],
|
|
126
|
+
'company': json['company'],
|
|
125
127
|
'line1': json['line1'],
|
|
126
128
|
'line2': json['line2'],
|
|
127
129
|
'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
|
+
|
|
@@ -50,7 +50,7 @@ export interface OrderFulfillmentResource {
|
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof OrderFulfillmentResource
|
|
52
52
|
*/
|
|
53
|
-
trackingNumber
|
|
53
|
+
trackingNumber?: string | null;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {string}
|
|
@@ -102,7 +102,6 @@ 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
105
|
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined) return false;
|
|
107
106
|
if (!('docnum' in value) || value['docnum'] === undefined) return false;
|
|
108
107
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
@@ -123,7 +122,7 @@ export function OrderFulfillmentResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
123
122
|
'id': json['id'],
|
|
124
123
|
'orderId': json['orderId'],
|
|
125
124
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
126
|
-
'trackingNumber': json['trackingNumber'],
|
|
125
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
127
126
|
'trackingUrl': json['trackingUrl'] == null ? undefined : json['trackingUrl'],
|
|
128
127
|
'trackingCompany': json['trackingCompany'],
|
|
129
128
|
'docnum': json['docnum'],
|
|
@@ -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
|
|
|
@@ -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'],
|
|
@@ -101,7 +101,7 @@ export interface StoreResource {
|
|
|
101
101
|
* @type {string}
|
|
102
102
|
* @memberof StoreResource
|
|
103
103
|
*/
|
|
104
|
-
website
|
|
104
|
+
website?: string | null;
|
|
105
105
|
/**
|
|
106
106
|
*
|
|
107
107
|
* @type {number}
|
|
@@ -151,7 +151,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
151
151
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
152
152
|
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
153
153
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
154
|
-
if (!('website' in value) || value['website'] === undefined) return false;
|
|
155
154
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
|
|
156
155
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
|
|
157
156
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
@@ -178,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
178
177
|
'latitude': json['latitude'],
|
|
179
178
|
'tagLine': json['tagLine'],
|
|
180
179
|
'email': json['email'],
|
|
181
|
-
'website': json['website'],
|
|
180
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
182
181
|
'netsuiteId': json['netsuiteId'],
|
|
183
182
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
184
183
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
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';
|