@digital8/lighting-illusions-ts-sdk 0.0.1457 → 0.0.1459
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/README.md +2 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +1 -0
- package/dist/models/GetAllProductRegistrationRequest.js +2 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +1 -0
- package/dist/models/IndexProductRegistrationRequest.js +2 -1
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +6 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +4 -0
- package/dist/models/ProductRegistrationListResource.d.ts +6 -0
- package/dist/models/ProductRegistrationListResource.js +4 -0
- package/docs/ProductRegistrationCustomerLiteResource.md +2 -0
- package/docs/ProductRegistrationListResource.md +2 -0
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductRegistrationRequest.ts +2 -1
- package/src/models/IndexProductRegistrationRequest.ts +2 -1
- package/src/models/ProductRegistrationCustomerLiteResource.ts +9 -0
- package/src/models/ProductRegistrationListResource.ts +9 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1459
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -574,7 +574,7 @@ and is automatically generated by the
|
|
|
574
574
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
575
575
|
|
|
576
576
|
- API version: `1.0.0`
|
|
577
|
-
- Package version: `0.0.
|
|
577
|
+
- Package version: `0.0.1459`
|
|
578
578
|
- Generator version: `7.20.0`
|
|
579
579
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
580
580
|
|
|
@@ -22,6 +22,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
+
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
28
|
return false;
|
|
27
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -45,7 +47,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
}
|
|
46
48
|
return {
|
|
47
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
-
'company': json['company']
|
|
50
|
+
'company': json['company'],
|
|
49
51
|
'line1': json['line1'],
|
|
50
52
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
51
53
|
'postcode': json['postcode'],
|
|
@@ -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']),
|
|
@@ -61,6 +61,7 @@ export declare const GetAllProductRegistrationRequestSortByEnum: {
|
|
|
61
61
|
readonly CustomerEmail: "customer-email";
|
|
62
62
|
readonly CustomerPhone: "customer-phone";
|
|
63
63
|
readonly CreatedAt: "created_at";
|
|
64
|
+
readonly PurchasedDate: "purchased_date";
|
|
64
65
|
};
|
|
65
66
|
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
66
67
|
/**
|
|
@@ -27,7 +27,8 @@ exports.GetAllProductRegistrationRequestSortByEnum = {
|
|
|
27
27
|
CustomerName: 'customer-name',
|
|
28
28
|
CustomerEmail: 'customer-email',
|
|
29
29
|
CustomerPhone: 'customer-phone',
|
|
30
|
-
CreatedAt: 'created_at'
|
|
30
|
+
CreatedAt: 'created_at',
|
|
31
|
+
PurchasedDate: 'purchased_date'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @export
|
|
@@ -97,6 +97,7 @@ export declare const IndexProductRegistrationRequestSortByEnum: {
|
|
|
97
97
|
readonly CustomerEmail: "customer-email";
|
|
98
98
|
readonly CustomerPhone: "customer-phone";
|
|
99
99
|
readonly CreatedAt: "created_at";
|
|
100
|
+
readonly PurchasedDate: "purchased_date";
|
|
100
101
|
};
|
|
101
102
|
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
102
103
|
/**
|
|
@@ -27,7 +27,8 @@ exports.IndexProductRegistrationRequestSortByEnum = {
|
|
|
27
27
|
CustomerName: 'customer-name',
|
|
28
28
|
CustomerEmail: 'customer-email',
|
|
29
29
|
CustomerPhone: 'customer-phone',
|
|
30
|
-
CreatedAt: 'created_at'
|
|
30
|
+
CreatedAt: 'created_at',
|
|
31
|
+
PurchasedDate: 'purchased_date'
|
|
31
32
|
};
|
|
32
33
|
/**
|
|
33
34
|
* @export
|
|
@@ -33,6 +33,12 @@ export interface ProductRegistrationCustomerLiteResource {
|
|
|
33
33
|
* @memberof ProductRegistrationCustomerLiteResource
|
|
34
34
|
*/
|
|
35
35
|
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductRegistrationCustomerLiteResource
|
|
40
|
+
*/
|
|
41
|
+
phone: string;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the ProductRegistrationCustomerLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfProductRegistrationCustomerLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('email' in value) || value['email'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function ProductRegistrationCustomerLiteResourceFromJSON(json) {
|
|
@@ -39,6 +41,7 @@ function ProductRegistrationCustomerLiteResourceFromJSONTyped(json, ignoreDiscri
|
|
|
39
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
42
|
'name': json['name'],
|
|
41
43
|
'email': json['email'],
|
|
44
|
+
'phone': json['phone'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function ProductRegistrationCustomerLiteResourceToJSON(json) {
|
|
@@ -53,5 +56,6 @@ function ProductRegistrationCustomerLiteResourceToJSONTyped(value, ignoreDiscrim
|
|
|
53
56
|
'id': value['id'],
|
|
54
57
|
'name': value['name'],
|
|
55
58
|
'email': value['email'],
|
|
59
|
+
'phone': value['phone'],
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -34,6 +34,12 @@ export interface ProductRegistrationListResource {
|
|
|
34
34
|
* @memberof ProductRegistrationListResource
|
|
35
35
|
*/
|
|
36
36
|
customer: ProductRegistrationCustomerLiteResource | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof ProductRegistrationListResource
|
|
41
|
+
*/
|
|
42
|
+
productChildrenCount: number;
|
|
37
43
|
/**
|
|
38
44
|
*
|
|
39
45
|
* @type {string}
|
|
@@ -27,6 +27,8 @@ function instanceOfProductRegistrationListResource(value) {
|
|
|
27
27
|
return false;
|
|
28
28
|
if (!('customer' in value) || value['customer'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
+
if (!('productChildrenCount' in value) || value['productChildrenCount'] === undefined)
|
|
31
|
+
return false;
|
|
30
32
|
return true;
|
|
31
33
|
}
|
|
32
34
|
function ProductRegistrationListResourceFromJSON(json) {
|
|
@@ -40,6 +42,7 @@ function ProductRegistrationListResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
40
42
|
'id': json['id'] == null ? undefined : json['id'],
|
|
41
43
|
'purchasedDate': json['purchasedDate'],
|
|
42
44
|
'customer': (0, ProductRegistrationCustomerLiteResource_1.ProductRegistrationCustomerLiteResourceFromJSON)(json['customer']),
|
|
45
|
+
'productChildrenCount': json['productChildrenCount'],
|
|
43
46
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
44
47
|
};
|
|
45
48
|
}
|
|
@@ -55,6 +58,7 @@ function ProductRegistrationListResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
55
58
|
'id': value['id'],
|
|
56
59
|
'purchasedDate': value['purchasedDate'],
|
|
57
60
|
'customer': (0, ProductRegistrationCustomerLiteResource_1.ProductRegistrationCustomerLiteResourceToJSON)(value['customer']),
|
|
61
|
+
'productChildrenCount': value['productChildrenCount'],
|
|
58
62
|
'createdAt': value['createdAt'],
|
|
59
63
|
};
|
|
60
64
|
}
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`email` | string
|
|
12
|
+
`phone` | string
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const example = {
|
|
|
20
21
|
"id": null,
|
|
21
22
|
"name": null,
|
|
22
23
|
"email": null,
|
|
24
|
+
"phone": null,
|
|
23
25
|
} satisfies ProductRegistrationCustomerLiteResource
|
|
24
26
|
|
|
25
27
|
console.log(example)
|
|
@@ -9,6 +9,7 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`purchasedDate` | string
|
|
11
11
|
`customer` | [ProductRegistrationCustomerLiteResource](ProductRegistrationCustomerLiteResource.md)
|
|
12
|
+
`productChildrenCount` | number
|
|
12
13
|
`createdAt` | string
|
|
13
14
|
|
|
14
15
|
## Example
|
|
@@ -21,6 +22,7 @@ const example = {
|
|
|
21
22
|
"id": null,
|
|
22
23
|
"purchasedDate": null,
|
|
23
24
|
"customer": null,
|
|
25
|
+
"productChildrenCount": null,
|
|
24
26
|
"createdAt": null,
|
|
25
27
|
} satisfies ProductRegistrationListResource
|
|
26
28
|
|
package/package.json
CHANGED
|
@@ -30,7 +30,7 @@ export interface AddressResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof AddressResource
|
|
32
32
|
*/
|
|
33
|
-
company
|
|
33
|
+
company: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -79,6 +79,7 @@ export interface AddressResource {
|
|
|
79
79
|
* Check if a given object implements the AddressResource interface.
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
82
83
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
83
84
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
84
85
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -99,7 +100,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
99
100
|
return {
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
|
-
'company': json['company']
|
|
103
|
+
'company': json['company'],
|
|
103
104
|
'line1': json['line1'],
|
|
104
105
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
105
106
|
'postcode': json['postcode'],
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -66,7 +66,8 @@ export const GetAllProductRegistrationRequestSortByEnum = {
|
|
|
66
66
|
CustomerName: 'customer-name',
|
|
67
67
|
CustomerEmail: 'customer-email',
|
|
68
68
|
CustomerPhone: 'customer-phone',
|
|
69
|
-
CreatedAt: 'created_at'
|
|
69
|
+
CreatedAt: 'created_at',
|
|
70
|
+
PurchasedDate: 'purchased_date'
|
|
70
71
|
} as const;
|
|
71
72
|
export type GetAllProductRegistrationRequestSortByEnum = typeof GetAllProductRegistrationRequestSortByEnum[keyof typeof GetAllProductRegistrationRequestSortByEnum];
|
|
72
73
|
|
|
@@ -102,7 +102,8 @@ export const IndexProductRegistrationRequestSortByEnum = {
|
|
|
102
102
|
CustomerName: 'customer-name',
|
|
103
103
|
CustomerEmail: 'customer-email',
|
|
104
104
|
CustomerPhone: 'customer-phone',
|
|
105
|
-
CreatedAt: 'created_at'
|
|
105
|
+
CreatedAt: 'created_at',
|
|
106
|
+
PurchasedDate: 'purchased_date'
|
|
106
107
|
} as const;
|
|
107
108
|
export type IndexProductRegistrationRequestSortByEnum = typeof IndexProductRegistrationRequestSortByEnum[keyof typeof IndexProductRegistrationRequestSortByEnum];
|
|
108
109
|
|
|
@@ -37,6 +37,12 @@ export interface ProductRegistrationCustomerLiteResource {
|
|
|
37
37
|
* @memberof ProductRegistrationCustomerLiteResource
|
|
38
38
|
*/
|
|
39
39
|
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProductRegistrationCustomerLiteResource
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -45,6 +51,7 @@ export interface ProductRegistrationCustomerLiteResource {
|
|
|
45
51
|
export function instanceOfProductRegistrationCustomerLiteResource(value: object): value is ProductRegistrationCustomerLiteResource {
|
|
46
52
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
47
53
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
54
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
48
55
|
return true;
|
|
49
56
|
}
|
|
50
57
|
|
|
@@ -61,6 +68,7 @@ export function ProductRegistrationCustomerLiteResourceFromJSONTyped(json: any,
|
|
|
61
68
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
69
|
'name': json['name'],
|
|
63
70
|
'email': json['email'],
|
|
71
|
+
'phone': json['phone'],
|
|
64
72
|
};
|
|
65
73
|
}
|
|
66
74
|
|
|
@@ -78,6 +86,7 @@ export function ProductRegistrationCustomerLiteResourceToJSONTyped(value?: Produ
|
|
|
78
86
|
'id': value['id'],
|
|
79
87
|
'name': value['name'],
|
|
80
88
|
'email': value['email'],
|
|
89
|
+
'phone': value['phone'],
|
|
81
90
|
};
|
|
82
91
|
}
|
|
83
92
|
|
|
@@ -45,6 +45,12 @@ export interface ProductRegistrationListResource {
|
|
|
45
45
|
* @memberof ProductRegistrationListResource
|
|
46
46
|
*/
|
|
47
47
|
customer: ProductRegistrationCustomerLiteResource | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ProductRegistrationListResource
|
|
52
|
+
*/
|
|
53
|
+
productChildrenCount: number;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {string}
|
|
@@ -59,6 +65,7 @@ export interface ProductRegistrationListResource {
|
|
|
59
65
|
export function instanceOfProductRegistrationListResource(value: object): value is ProductRegistrationListResource {
|
|
60
66
|
if (!('purchasedDate' in value) || value['purchasedDate'] === undefined) return false;
|
|
61
67
|
if (!('customer' in value) || value['customer'] === undefined) return false;
|
|
68
|
+
if (!('productChildrenCount' in value) || value['productChildrenCount'] === undefined) return false;
|
|
62
69
|
return true;
|
|
63
70
|
}
|
|
64
71
|
|
|
@@ -75,6 +82,7 @@ export function ProductRegistrationListResourceFromJSONTyped(json: any, ignoreDi
|
|
|
75
82
|
'id': json['id'] == null ? undefined : json['id'],
|
|
76
83
|
'purchasedDate': json['purchasedDate'],
|
|
77
84
|
'customer': ProductRegistrationCustomerLiteResourceFromJSON(json['customer']),
|
|
85
|
+
'productChildrenCount': json['productChildrenCount'],
|
|
78
86
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
79
87
|
};
|
|
80
88
|
}
|
|
@@ -93,6 +101,7 @@ export function ProductRegistrationListResourceToJSONTyped(value?: ProductRegist
|
|
|
93
101
|
'id': value['id'],
|
|
94
102
|
'purchasedDate': value['purchasedDate'],
|
|
95
103
|
'customer': ProductRegistrationCustomerLiteResourceToJSON(value['customer']),
|
|
104
|
+
'productChildrenCount': value['productChildrenCount'],
|
|
96
105
|
'createdAt': value['createdAt'],
|
|
97
106
|
};
|
|
98
107
|
}
|