@digital8/lighting-illusions-ts-sdk 0.0.2016 → 0.0.2018

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.
Files changed (54) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +9 -2
  3. package/dist/models/AddressFrontendResource.d.ts +2 -2
  4. package/dist/models/AddressFrontendResource.js +2 -6
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/CartCouponLiteResource.d.ts +56 -0
  8. package/dist/models/CartCouponLiteResource.js +67 -0
  9. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  11. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  12. package/dist/models/ExternalApiLogResource.js +1 -3
  13. package/dist/models/FrontendCartResource.d.ts +138 -0
  14. package/dist/models/FrontendCartResource.js +119 -0
  15. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  16. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  17. package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
  18. package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
  19. package/dist/models/FrontendLineItemResource.d.ts +75 -0
  20. package/dist/models/FrontendLineItemResource.js +78 -0
  21. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  23. package/dist/models/ProductChildCartLiteResource.d.ts +18 -0
  24. package/dist/models/ProductChildCartLiteResource.js +12 -0
  25. package/dist/models/StoreListResource.d.ts +1 -1
  26. package/dist/models/StoreListResource.js +3 -1
  27. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  28. package/dist/models/StoreSpecialDateResource.js +3 -1
  29. package/dist/models/index.d.ts +7 -0
  30. package/dist/models/index.js +7 -0
  31. package/docs/CartCouponLiteResource.md +42 -0
  32. package/docs/CartCouponLiteResourceArrayResponse.md +34 -0
  33. package/docs/FrontendCartResource.md +68 -0
  34. package/docs/FrontendCartResourceArrayResponse.md +34 -0
  35. package/docs/FrontendCartResourceCouponsInner.md +42 -0
  36. package/docs/FrontendLineItemResource.md +48 -0
  37. package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
  38. package/docs/ProductChildCartLiteResource.md +6 -0
  39. package/docs/StoreSpecialDateResource.md +1 -1
  40. package/package.json +1 -1
  41. package/src/models/AddressFrontendResource.ts +4 -6
  42. package/src/models/AddressResource.ts +2 -3
  43. package/src/models/CartCouponLiteResource.ts +102 -0
  44. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  45. package/src/models/ExternalApiLogResource.ts +2 -3
  46. package/src/models/FrontendCartResource.ts +246 -0
  47. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  48. package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
  49. package/src/models/FrontendLineItemResource.ts +136 -0
  50. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  51. package/src/models/ProductChildCartLiteResource.ts +27 -0
  52. package/src/models/StoreListResource.ts +3 -2
  53. package/src/models/StoreSpecialDateResource.ts +4 -3
  54. package/src/models/index.ts +7 -0
@@ -0,0 +1,34 @@
1
+
2
+ # CartCouponLiteResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { CartCouponLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies CartCouponLiteResourceArrayResponse
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 CartCouponLiteResourceArrayResponse
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
+
@@ -0,0 +1,68 @@
1
+
2
+ # FrontendCartResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `lifecycleStatus` | string
11
+ `siteId` | number
12
+ `sessionToken` | string
13
+ `customer` | [CustomerListResource](CustomerListResource.md)
14
+ `shippingType` | string
15
+ `shippingAddress` | [AddressResource](AddressResource.md)
16
+ `billingAddress` | [AddressResource](AddressResource.md)
17
+ `lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
18
+ `coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
19
+ `subtotal` | number
20
+ `promotionalDiscount` | number
21
+ `couponSubtotalDiscount` | number
22
+ `couponShippingDiscount` | number
23
+ `shipping` | number
24
+ `transitInsurance` | number
25
+ `gst` | number
26
+ `grandTotal` | number
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
32
+
33
+ // TODO: Update the object below with actual values
34
+ const example = {
35
+ "id": null,
36
+ "lifecycleStatus": null,
37
+ "siteId": null,
38
+ "sessionToken": null,
39
+ "customer": null,
40
+ "shippingType": null,
41
+ "shippingAddress": null,
42
+ "billingAddress": null,
43
+ "lineItems": null,
44
+ "coupons": null,
45
+ "subtotal": null,
46
+ "promotionalDiscount": null,
47
+ "couponSubtotalDiscount": null,
48
+ "couponShippingDiscount": null,
49
+ "shipping": null,
50
+ "transitInsurance": null,
51
+ "gst": null,
52
+ "grandTotal": null,
53
+ } satisfies FrontendCartResource
54
+
55
+ console.log(example)
56
+
57
+ // Convert the instance to a JSON string
58
+ const exampleJSON: string = JSON.stringify(example)
59
+ console.log(exampleJSON)
60
+
61
+ // Parse the JSON string back to an object
62
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
63
+ console.log(exampleParsed)
64
+ ```
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
67
+
68
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendCartResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<FrontendCartResource>](FrontendCartResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendCartResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendCartResourceArrayResponse
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 FrontendCartResourceArrayResponse
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
+
@@ -0,0 +1,42 @@
1
+
2
+ # FrontendCartResourceCouponsInner
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `code` | string
11
+ `name` | string
12
+ `discount` | number
13
+ `appliesTo` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { FrontendCartResourceCouponsInner } from '@digital8/lighting-illusions-ts-sdk'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "id": null,
23
+ "code": null,
24
+ "name": null,
25
+ "discount": null,
26
+ "appliesTo": null,
27
+ } satisfies FrontendCartResourceCouponsInner
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResourceCouponsInner
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
@@ -0,0 +1,48 @@
1
+
2
+ # FrontendLineItemResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `quantity` | number
11
+ `productPrice` | number
12
+ `subtotalAmount` | number
13
+ `totalAmount` | number
14
+ `isAvailable` | boolean
15
+ `isInStock` | boolean
16
+ `productChild` | [ProductChildCartLiteResource](ProductChildCartLiteResource.md)
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import type { FrontendLineItemResource } from '@digital8/lighting-illusions-ts-sdk'
22
+
23
+ // TODO: Update the object below with actual values
24
+ const example = {
25
+ "id": null,
26
+ "quantity": null,
27
+ "productPrice": null,
28
+ "subtotalAmount": null,
29
+ "totalAmount": null,
30
+ "isAvailable": null,
31
+ "isInStock": null,
32
+ "productChild": null,
33
+ } satisfies FrontendLineItemResource
34
+
35
+ console.log(example)
36
+
37
+ // Convert the instance to a JSON string
38
+ const exampleJSON: string = JSON.stringify(example)
39
+ console.log(exampleJSON)
40
+
41
+ // Parse the JSON string back to an object
42
+ const exampleParsed = JSON.parse(exampleJSON) as FrontendLineItemResource
43
+ console.log(exampleParsed)
44
+ ```
45
+
46
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
47
+
48
+
@@ -0,0 +1,34 @@
1
+
2
+ # FrontendLineItemResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { FrontendLineItemResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies FrontendLineItemResourceArrayResponse
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 FrontendLineItemResourceArrayResponse
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
+
@@ -12,6 +12,9 @@ Name | Type
12
12
  `model` | string
13
13
  `modelNumber` | string
14
14
  `name` | string
15
+ `parentName` | string
16
+ `variantName` | string
17
+ `slug` | string
15
18
  `stock` | number
16
19
  `salePrice` | number
17
20
  `thumbnail` | [AssetLiteResource](AssetLiteResource.md)
@@ -30,6 +33,9 @@ const example = {
30
33
  "model": null,
31
34
  "modelNumber": null,
32
35
  "name": null,
36
+ "parentName": null,
37
+ "variantName": null,
38
+ "slug": null,
33
39
  "stock": null,
34
40
  "salePrice": null,
35
41
  "thumbnail": null,
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | string
15
15
  `displayEndDate` | string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2016",
3
+ "version": "0.0.2018",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
24
24
  * @type {string}
25
25
  * @memberof AddressFrontendResource
26
26
  */
27
- company: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
36
36
  * @type {string}
37
37
  * @memberof AddressFrontendResource
38
38
  */
39
- line2: string;
39
+ line2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -73,9 +73,7 @@ export interface AddressFrontendResource {
73
73
  * Check if a given object implements the AddressFrontendResource interface.
74
74
  */
75
75
  export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
76
- if (!('company' in value) || value['company'] === undefined) return false;
77
76
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
- if (!('line2' in value) || value['line2'] === undefined) return false;
79
77
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
80
78
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
81
79
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -94,9 +92,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
94
92
  }
95
93
  return {
96
94
 
97
- 'company': json['company'],
95
+ 'company': json['company'] == null ? undefined : json['company'],
98
96
  'line1': json['line1'],
99
- 'line2': json['line2'],
97
+ 'line2': json['line2'] == null ? undefined : json['line2'],
100
98
  'postcode': json['postcode'],
101
99
  'suburb': json['suburb'],
102
100
  'country': json['country'],
@@ -54,7 +54,7 @@ export interface AddressResource {
54
54
  * @type {string}
55
55
  * @memberof AddressResource
56
56
  */
57
- line2: string;
57
+ line2?: string | null;
58
58
  /**
59
59
  *
60
60
  * @type {string}
@@ -93,7 +93,6 @@ export interface AddressResource {
93
93
  export function instanceOfAddressResource(value: object): value is AddressResource {
94
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
95
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
- if (!('line2' in value) || value['line2'] === undefined) return false;
97
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
98
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
99
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -117,7 +116,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
117
116
  'addresseeName': json['addresseeName'],
118
117
  'company': json['company'] == null ? undefined : json['company'],
119
118
  'line1': json['line1'],
120
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
121
120
  'postcode': json['postcode'],
122
121
  'suburb': json['suburb'],
123
122
  'country': json['country'],
@@ -0,0 +1,102 @@
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 CartCouponLiteResource
20
+ */
21
+ export interface CartCouponLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof CartCouponLiteResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CartCouponLiteResource
32
+ */
33
+ code: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CartCouponLiteResource
38
+ */
39
+ name: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CartCouponLiteResource
44
+ */
45
+ discount: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CartCouponLiteResource
50
+ */
51
+ appliesTo: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the CartCouponLiteResource interface.
56
+ */
57
+ export function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource {
58
+ if (!('id' in value) || value['id'] === undefined) return false;
59
+ if (!('code' in value) || value['code'] === undefined) return false;
60
+ if (!('name' in value) || value['name'] === undefined) return false;
61
+ if (!('discount' in value) || value['discount'] === undefined) return false;
62
+ if (!('appliesTo' in value) || value['appliesTo'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource {
67
+ return CartCouponLiteResourceFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'id': json['id'],
77
+ 'code': json['code'],
78
+ 'name': json['name'],
79
+ 'discount': json['discount'],
80
+ 'appliesTo': json['appliesTo'],
81
+ };
82
+ }
83
+
84
+ export function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource {
85
+ return CartCouponLiteResourceToJSONTyped(json, false);
86
+ }
87
+
88
+ export function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'id': value['id'],
96
+ 'code': value['code'],
97
+ 'name': value['name'],
98
+ 'discount': value['discount'],
99
+ 'appliesTo': value['appliesTo'],
100
+ };
101
+ }
102
+
@@ -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 { CartCouponLiteResource } from './CartCouponLiteResource';
17
+ import {
18
+ CartCouponLiteResourceFromJSON,
19
+ CartCouponLiteResourceFromJSONTyped,
20
+ CartCouponLiteResourceToJSON,
21
+ CartCouponLiteResourceToJSONTyped,
22
+ } from './CartCouponLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CartCouponLiteResourceArrayResponse
28
+ */
29
+ export interface CartCouponLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<CartCouponLiteResource>}
33
+ * @memberof CartCouponLiteResourceArrayResponse
34
+ */
35
+ data?: Array<CartCouponLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse {
46
+ return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartCouponLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse {
60
+ return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | 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(CartCouponLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
74
74
  * @type {string}
75
75
  * @memberof ExternalApiLogResource
76
76
  */
77
- requestPayload: string;
77
+ requestPayload?: string | null;
78
78
  /**
79
79
  *
80
80
  * @type {string}
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
106
106
  if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
107
107
  if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
108
108
  if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
109
- if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
110
109
  if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
111
110
  if (!('site' in value) || value['site'] === undefined) return false;
112
111
  return true;
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
129
128
  'exteranlApiLoggableId': json['exteranlApiLoggableId'],
130
129
  'endpoint': json['endpoint'],
131
130
  'responseCode': json['responseCode'],
132
- 'requestPayload': json['requestPayload'],
131
+ 'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
133
132
  'responsePayload': json['responsePayload'],
134
133
  'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
135
134
  'site': SiteLiteResourceFromJSON(json['site']),