@digital8/lighting-illusions-ts-sdk 0.0.2215 → 0.0.2216
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 +12 -0
- package/README.md +12 -3
- package/dist/apis/AdminsApi.d.ts +0 -12
- package/dist/apis/AdminsApi.js +0 -55
- package/dist/apis/AuthApi.d.ts +92 -0
- package/dist/apis/AuthApi.js +369 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminLoginResponseResource.d.ts +39 -0
- package/dist/models/AdminLoginResponseResource.js +56 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.js +50 -0
- package/dist/models/AdminResource.d.ts +6 -0
- package/dist/models/AdminResource.js +4 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ForgotPasswordAdminRequest.d.ts +32 -0
- package/dist/models/ForgotPasswordAdminRequest.js +51 -0
- package/dist/models/LoginAdminRequest.d.ts +38 -0
- package/dist/models/LoginAdminRequest.js +55 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +4 -4
- package/dist/models/ResetPasswordAdminRequest.d.ts +44 -0
- package/dist/models/ResetPasswordAdminRequest.js +59 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AdminLoginResponseResource.md +36 -0
- package/docs/AdminLoginResponseResourceArrayResponse.md +34 -0
- package/docs/AdminResource.md +2 -0
- package/docs/AdminsApi.md +0 -58
- package/docs/AuthApi.md +322 -0
- package/docs/ForgotPasswordAdminRequest.md +34 -0
- package/docs/LoginAdminRequest.md +36 -0
- package/docs/ResetPasswordAdminRequest.md +38 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/AdminsApi.ts +0 -37
- package/src/apis/AuthApi.ts +258 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminLoginResponseResource.ts +83 -0
- package/src/models/AdminLoginResponseResourceArrayResponse.ts +73 -0
- package/src/models/AdminResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ForgotPasswordAdminRequest.ts +66 -0
- package/src/models/LoginAdminRequest.ts +75 -0
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/ResetPasswordAdminRequest.ts +84 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +5 -0
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ForgotPasswordAdminRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ForgotPasswordAdminRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ForgotPasswordAdminRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfForgotPasswordAdminRequest(value: object): value is ForgotPasswordAdminRequest;
|
|
29
|
+
export declare function ForgotPasswordAdminRequestFromJSON(json: any): ForgotPasswordAdminRequest;
|
|
30
|
+
export declare function ForgotPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordAdminRequest;
|
|
31
|
+
export declare function ForgotPasswordAdminRequestToJSON(json: any): ForgotPasswordAdminRequest;
|
|
32
|
+
export declare function ForgotPasswordAdminRequestToJSONTyped(value?: ForgotPasswordAdminRequest | 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.instanceOfForgotPasswordAdminRequest = instanceOfForgotPasswordAdminRequest;
|
|
17
|
+
exports.ForgotPasswordAdminRequestFromJSON = ForgotPasswordAdminRequestFromJSON;
|
|
18
|
+
exports.ForgotPasswordAdminRequestFromJSONTyped = ForgotPasswordAdminRequestFromJSONTyped;
|
|
19
|
+
exports.ForgotPasswordAdminRequestToJSON = ForgotPasswordAdminRequestToJSON;
|
|
20
|
+
exports.ForgotPasswordAdminRequestToJSONTyped = ForgotPasswordAdminRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfForgotPasswordAdminRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function ForgotPasswordAdminRequestFromJSON(json) {
|
|
30
|
+
return ForgotPasswordAdminRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function ForgotPasswordAdminRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function ForgotPasswordAdminRequestToJSON(json) {
|
|
41
|
+
return ForgotPasswordAdminRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ForgotPasswordAdminRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'email': value['email'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 LoginAdminRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginAdminRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginAdminRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginAdminRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LoginAdminRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLoginAdminRequest(value: object): value is LoginAdminRequest;
|
|
35
|
+
export declare function LoginAdminRequestFromJSON(json: any): LoginAdminRequest;
|
|
36
|
+
export declare function LoginAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAdminRequest;
|
|
37
|
+
export declare function LoginAdminRequestToJSON(json: any): LoginAdminRequest;
|
|
38
|
+
export declare function LoginAdminRequestToJSONTyped(value?: LoginAdminRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfLoginAdminRequest = instanceOfLoginAdminRequest;
|
|
17
|
+
exports.LoginAdminRequestFromJSON = LoginAdminRequestFromJSON;
|
|
18
|
+
exports.LoginAdminRequestFromJSONTyped = LoginAdminRequestFromJSONTyped;
|
|
19
|
+
exports.LoginAdminRequestToJSON = LoginAdminRequestToJSON;
|
|
20
|
+
exports.LoginAdminRequestToJSONTyped = LoginAdminRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginAdminRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginAdminRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LoginAdminRequestFromJSON(json) {
|
|
32
|
+
return LoginAdminRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LoginAdminRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'password': json['password'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LoginAdminRequestToJSON(json) {
|
|
44
|
+
return LoginAdminRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LoginAdminRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'password': value['password'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -39,7 +39,7 @@ export interface OrderFulfillmentResource {
|
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof OrderFulfillmentResource
|
|
41
41
|
*/
|
|
42
|
-
trackingNumber
|
|
42
|
+
trackingNumber?: string | null;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {string}
|
|
@@ -51,7 +51,7 @@ export interface OrderFulfillmentResource {
|
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof OrderFulfillmentResource
|
|
53
53
|
*/
|
|
54
|
-
trackingCompany
|
|
54
|
+
trackingCompany: string;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* @type {string}
|
|
@@ -29,10 +29,10 @@ 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 (!('trackingUrl' in value) || value['trackingUrl'] === undefined)
|
|
35
33
|
return false;
|
|
34
|
+
if (!('trackingCompany' in value) || value['trackingCompany'] === undefined)
|
|
35
|
+
return false;
|
|
36
36
|
if (!('docnum' in value) || value['docnum'] === undefined)
|
|
37
37
|
return false;
|
|
38
38
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
@@ -52,9 +52,9 @@ function OrderFulfillmentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
52
|
'id': json['id'],
|
|
53
53
|
'orderId': json['orderId'],
|
|
54
54
|
'dateShipped': (new Date(json['dateShipped'])),
|
|
55
|
-
'trackingNumber': json['trackingNumber'],
|
|
55
|
+
'trackingNumber': json['trackingNumber'] == null ? undefined : json['trackingNumber'],
|
|
56
56
|
'trackingUrl': json['trackingUrl'],
|
|
57
|
-
'trackingCompany': json['trackingCompany']
|
|
57
|
+
'trackingCompany': json['trackingCompany'],
|
|
58
58
|
'docnum': json['docnum'],
|
|
59
59
|
'netsuiteId': json['netsuiteId'],
|
|
60
60
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ResetPasswordAdminRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ResetPasswordAdminRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResetPasswordAdminRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResetPasswordAdminRequest
|
|
28
|
+
*/
|
|
29
|
+
token: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResetPasswordAdminRequest
|
|
34
|
+
*/
|
|
35
|
+
password: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ResetPasswordAdminRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfResetPasswordAdminRequest(value: object): value is ResetPasswordAdminRequest;
|
|
41
|
+
export declare function ResetPasswordAdminRequestFromJSON(json: any): ResetPasswordAdminRequest;
|
|
42
|
+
export declare function ResetPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetPasswordAdminRequest;
|
|
43
|
+
export declare function ResetPasswordAdminRequestToJSON(json: any): ResetPasswordAdminRequest;
|
|
44
|
+
export declare function ResetPasswordAdminRequestToJSONTyped(value?: ResetPasswordAdminRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfResetPasswordAdminRequest = instanceOfResetPasswordAdminRequest;
|
|
17
|
+
exports.ResetPasswordAdminRequestFromJSON = ResetPasswordAdminRequestFromJSON;
|
|
18
|
+
exports.ResetPasswordAdminRequestFromJSONTyped = ResetPasswordAdminRequestFromJSONTyped;
|
|
19
|
+
exports.ResetPasswordAdminRequestToJSON = ResetPasswordAdminRequestToJSON;
|
|
20
|
+
exports.ResetPasswordAdminRequestToJSONTyped = ResetPasswordAdminRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ResetPasswordAdminRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfResetPasswordAdminRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ResetPasswordAdminRequestFromJSON(json) {
|
|
34
|
+
return ResetPasswordAdminRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ResetPasswordAdminRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'token': json['token'],
|
|
43
|
+
'password': json['password'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ResetPasswordAdminRequestToJSON(json) {
|
|
47
|
+
return ResetPasswordAdminRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ResetPasswordAdminRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'email': value['email'],
|
|
56
|
+
'token': value['token'],
|
|
57
|
+
'password': value['password'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -35,6 +35,8 @@ function instanceOfStoreListResource(value) {
|
|
|
35
35
|
return false;
|
|
36
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -57,7 +59,7 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
59
|
'latitude': json['latitude'],
|
|
58
60
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
59
61
|
'email': json['email'],
|
|
60
|
-
'website': json['website']
|
|
62
|
+
'website': json['website'],
|
|
61
63
|
'netsuiteId': json['netsuiteId'],
|
|
62
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
63
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -26,8 +26,6 @@ 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;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export * from './AdminListResource';
|
|
|
7
7
|
export * from './AdminListResourceArrayResponse';
|
|
8
8
|
export * from './AdminLiteResource';
|
|
9
9
|
export * from './AdminLiteResourceArrayResponse';
|
|
10
|
+
export * from './AdminLoginResponseResource';
|
|
11
|
+
export * from './AdminLoginResponseResourceArrayResponse';
|
|
10
12
|
export * from './AdminNoteResource';
|
|
11
13
|
export * from './AdminNoteResourceArrayResponse';
|
|
12
14
|
export * from './AdminOrderLineItemResource';
|
|
@@ -183,6 +185,7 @@ export * from './ExternalApiLogResource';
|
|
|
183
185
|
export * from './ExternalApiLogResourceArrayResponse';
|
|
184
186
|
export * from './ExternalApiProvider';
|
|
185
187
|
export * from './ExternalApiSyncStatus';
|
|
188
|
+
export * from './ForgotPasswordAdminRequest';
|
|
186
189
|
export * from './FrontendCartResource';
|
|
187
190
|
export * from './FrontendCartResourceArrayResponse';
|
|
188
191
|
export * from './FrontendCartResourceCouponsInner';
|
|
@@ -222,6 +225,7 @@ export * from './LineItemDiscountResourceArrayResponse';
|
|
|
222
225
|
export * from './LineItemListResource';
|
|
223
226
|
export * from './LineItemListResourceArrayResponse';
|
|
224
227
|
export * from './LinkOverlayTemplateToAssetsRequest';
|
|
228
|
+
export * from './LoginAdminRequest';
|
|
225
229
|
export * from './MenuIdRequest';
|
|
226
230
|
export * from './MenuItemHierarchyResource';
|
|
227
231
|
export * from './MenuItemHierarchyResourceArrayResponse';
|
|
@@ -485,6 +489,7 @@ export * from './RedirectFrontendResourceArrayResponse';
|
|
|
485
489
|
export * from './RedirectListResource';
|
|
486
490
|
export * from './RedirectListResourceArrayResponse';
|
|
487
491
|
export * from './RefundTransactionRequest';
|
|
492
|
+
export * from './ResetPasswordAdminRequest';
|
|
488
493
|
export * from './ReviewExportDownloadUrlResource';
|
|
489
494
|
export * from './ReviewExportDownloadUrlResourceArrayResponse';
|
|
490
495
|
export * from './ReviewImportFailureResource';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,8 @@ __exportStar(require("./AdminListResource"), exports);
|
|
|
25
25
|
__exportStar(require("./AdminListResourceArrayResponse"), exports);
|
|
26
26
|
__exportStar(require("./AdminLiteResource"), exports);
|
|
27
27
|
__exportStar(require("./AdminLiteResourceArrayResponse"), exports);
|
|
28
|
+
__exportStar(require("./AdminLoginResponseResource"), exports);
|
|
29
|
+
__exportStar(require("./AdminLoginResponseResourceArrayResponse"), exports);
|
|
28
30
|
__exportStar(require("./AdminNoteResource"), exports);
|
|
29
31
|
__exportStar(require("./AdminNoteResourceArrayResponse"), exports);
|
|
30
32
|
__exportStar(require("./AdminOrderLineItemResource"), exports);
|
|
@@ -201,6 +203,7 @@ __exportStar(require("./ExternalApiLogResource"), exports);
|
|
|
201
203
|
__exportStar(require("./ExternalApiLogResourceArrayResponse"), exports);
|
|
202
204
|
__exportStar(require("./ExternalApiProvider"), exports);
|
|
203
205
|
__exportStar(require("./ExternalApiSyncStatus"), exports);
|
|
206
|
+
__exportStar(require("./ForgotPasswordAdminRequest"), exports);
|
|
204
207
|
__exportStar(require("./FrontendCartResource"), exports);
|
|
205
208
|
__exportStar(require("./FrontendCartResourceArrayResponse"), exports);
|
|
206
209
|
__exportStar(require("./FrontendCartResourceCouponsInner"), exports);
|
|
@@ -240,6 +243,7 @@ __exportStar(require("./LineItemDiscountResourceArrayResponse"), exports);
|
|
|
240
243
|
__exportStar(require("./LineItemListResource"), exports);
|
|
241
244
|
__exportStar(require("./LineItemListResourceArrayResponse"), exports);
|
|
242
245
|
__exportStar(require("./LinkOverlayTemplateToAssetsRequest"), exports);
|
|
246
|
+
__exportStar(require("./LoginAdminRequest"), exports);
|
|
243
247
|
__exportStar(require("./MenuIdRequest"), exports);
|
|
244
248
|
__exportStar(require("./MenuItemHierarchyResource"), exports);
|
|
245
249
|
__exportStar(require("./MenuItemHierarchyResourceArrayResponse"), exports);
|
|
@@ -503,6 +507,7 @@ __exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
|
503
507
|
__exportStar(require("./RedirectListResource"), exports);
|
|
504
508
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
505
509
|
__exportStar(require("./RefundTransactionRequest"), exports);
|
|
510
|
+
__exportStar(require("./ResetPasswordAdminRequest"), exports);
|
|
506
511
|
__exportStar(require("./ReviewExportDownloadUrlResource"), exports);
|
|
507
512
|
__exportStar(require("./ReviewExportDownloadUrlResourceArrayResponse"), exports);
|
|
508
513
|
__exportStar(require("./ReviewImportFailureResource"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# AdminLoginResponseResource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`token` | string
|
|
10
|
+
`admin` | [AdminResource](AdminResource.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { AdminLoginResponseResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"token": null,
|
|
20
|
+
"admin": null,
|
|
21
|
+
} satisfies AdminLoginResponseResource
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as AdminLoginResponseResource
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# AdminLoginResponseResourceArrayResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<AdminLoginResponseResource>](AdminLoginResponseResource.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { AdminLoginResponseResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"data": null,
|
|
19
|
+
} satisfies AdminLoginResponseResourceArrayResponse
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as AdminLoginResponseResourceArrayResponse
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/docs/AdminResource.md
CHANGED
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`user` | [UserLiteResource](UserLiteResource.md)
|
|
11
11
|
`roles` | [Array<RoleLiteResource>](RoleLiteResource.md)
|
|
12
|
+
`permissions` | object
|
|
12
13
|
`createdAt` | Date
|
|
13
14
|
`updatedAt` | Date
|
|
14
15
|
|
|
@@ -22,6 +23,7 @@ const example = {
|
|
|
22
23
|
"id": null,
|
|
23
24
|
"user": null,
|
|
24
25
|
"roles": null,
|
|
26
|
+
"permissions": null,
|
|
25
27
|
"createdAt": null,
|
|
26
28
|
"updatedAt": null,
|
|
27
29
|
} satisfies AdminResource
|
package/docs/AdminsApi.md
CHANGED
|
@@ -7,7 +7,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
7
7
|
| [**destroyAdminUser**](AdminsApi.md#destroyadminuser) | **DELETE** /admin-api/admins/{admin}/delete | Auto-generated: destroyAdminUser |
|
|
8
8
|
| [**getAllAdminUser**](AdminsApi.md#getalladminuser) | **POST** /admin-api/admins/all | Auto-generated: getAllAdminUser |
|
|
9
9
|
| [**indexAdminUser**](AdminsApi.md#indexadminuser) | **POST** /admin-api/admins/list | Auto-generated: indexAdminUser |
|
|
10
|
-
| [**meAdminUser**](AdminsApi.md#meadminuser) | **GET** /admin-api/admins/me | Auto-generated: meAdminUser |
|
|
11
10
|
| [**showAdminUser**](AdminsApi.md#showadminuser) | **GET** /admin-api/admins/{admin} | Auto-generated: showAdminUser |
|
|
12
11
|
| [**storeAdminUser**](AdminsApi.md#storeadminuser) | **POST** /admin-api/admins/create | Auto-generated: storeAdminUser |
|
|
13
12
|
| [**updateAdminUser**](AdminsApi.md#updateadminuseroperation) | **PUT** /admin-api/admins/{admin}/update | Auto-generated: updateAdminUser |
|
|
@@ -209,63 +208,6 @@ No authorization required
|
|
|
209
208
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
210
209
|
|
|
211
210
|
|
|
212
|
-
## meAdminUser
|
|
213
|
-
|
|
214
|
-
> AdminResource meAdminUser()
|
|
215
|
-
|
|
216
|
-
Auto-generated: meAdminUser
|
|
217
|
-
|
|
218
|
-
### Example
|
|
219
|
-
|
|
220
|
-
```ts
|
|
221
|
-
import {
|
|
222
|
-
Configuration,
|
|
223
|
-
AdminsApi,
|
|
224
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
225
|
-
import type { MeAdminUserRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
226
|
-
|
|
227
|
-
async function example() {
|
|
228
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
229
|
-
const api = new AdminsApi();
|
|
230
|
-
|
|
231
|
-
try {
|
|
232
|
-
const data = await api.meAdminUser();
|
|
233
|
-
console.log(data);
|
|
234
|
-
} catch (error) {
|
|
235
|
-
console.error(error);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// Run the test
|
|
240
|
-
example().catch(console.error);
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
### Parameters
|
|
244
|
-
|
|
245
|
-
This endpoint does not need any parameter.
|
|
246
|
-
|
|
247
|
-
### Return type
|
|
248
|
-
|
|
249
|
-
[**AdminResource**](AdminResource.md)
|
|
250
|
-
|
|
251
|
-
### Authorization
|
|
252
|
-
|
|
253
|
-
No authorization required
|
|
254
|
-
|
|
255
|
-
### HTTP request headers
|
|
256
|
-
|
|
257
|
-
- **Content-Type**: Not defined
|
|
258
|
-
- **Accept**: `application/json`
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### HTTP response details
|
|
262
|
-
| Status code | Description | Response headers |
|
|
263
|
-
|-------------|-------------|------------------|
|
|
264
|
-
| **200** | Successful resource response | - |
|
|
265
|
-
|
|
266
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
267
|
-
|
|
268
|
-
|
|
269
211
|
## showAdminUser
|
|
270
212
|
|
|
271
213
|
> AdminResource showAdminUser(admin)
|