@lcdp/api-react-rest-client 1.2.0 → 1.3.0

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.
@@ -26,6 +26,7 @@ export declare enum InvoiceType {
26
26
  ORDERCREDITNOTEBUYER = "ORDER_CREDIT_NOTE_BUYER",
27
27
  ORDERCREDITNOTESELLER = "ORDER_CREDIT_NOTE_SELLER",
28
28
  AGGREGATEDCOMMISSION = "AGGREGATED_COMMISSION",
29
+ AGGREGATEDCOMMISSIONCREDITNOTE = "AGGREGATED_COMMISSION_CREDIT_NOTE",
29
30
  EXTERNAL = "EXTERNAL"
30
31
  }
31
32
  export declare function InvoiceTypeFromJSON(json: any): InvoiceType;
@@ -32,6 +32,7 @@ var InvoiceType;
32
32
  InvoiceType["ORDERCREDITNOTEBUYER"] = "ORDER_CREDIT_NOTE_BUYER";
33
33
  InvoiceType["ORDERCREDITNOTESELLER"] = "ORDER_CREDIT_NOTE_SELLER";
34
34
  InvoiceType["AGGREGATEDCOMMISSION"] = "AGGREGATED_COMMISSION";
35
+ InvoiceType["AGGREGATEDCOMMISSIONCREDITNOTE"] = "AGGREGATED_COMMISSION_CREDIT_NOTE";
35
36
  InvoiceType["EXTERNAL"] = "EXTERNAL";
36
37
  })(InvoiceType = exports.InvoiceType || (exports.InvoiceType = {}));
37
38
  function InvoiceTypeFromJSON(json) {
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original?: string;
53
+ original: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
32
+ 'original': json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original?: string;
53
+ original: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
32
+ 'original': json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;
@@ -21,19 +21,19 @@ export interface Image {
21
21
  * @type {number}
22
22
  * @memberof Image
23
23
  */
24
- id?: number;
24
+ id: number;
25
25
  /**
26
26
  * Image is active
27
27
  * @type {boolean}
28
28
  * @memberof Image
29
29
  */
30
- active?: boolean;
30
+ active: boolean;
31
31
  /**
32
32
  *
33
33
  * @type {ImageVersions}
34
34
  * @memberof Image
35
35
  */
36
- versions?: ImageVersions;
36
+ versions: ImageVersions;
37
37
  }
38
38
  export declare function ImageFromJSON(json: any): Image;
39
39
  export declare function ImageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Image;
@@ -14,7 +14,6 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ImageToJSON = exports.ImageFromJSONTyped = exports.ImageFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  var ImageVersions_1 = require("./ImageVersions");
19
18
  function ImageFromJSON(json) {
20
19
  return ImageFromJSONTyped(json, false);
@@ -25,9 +24,9 @@ function ImageFromJSONTyped(json, ignoreDiscriminator) {
25
24
  return json;
26
25
  }
27
26
  return {
28
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
29
- 'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
30
- 'versions': !(0, runtime_1.exists)(json, 'versions') ? undefined : (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
27
+ 'id': json['id'],
28
+ 'active': json['active'],
29
+ 'versions': (0, ImageVersions_1.ImageVersionsFromJSON)(json['versions']),
31
30
  };
32
31
  }
33
32
  exports.ImageFromJSONTyped = ImageFromJSONTyped;
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original?: string;
53
+ original: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
32
+ 'original': json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;
@@ -24,13 +24,13 @@ export interface Pub {
24
24
  * @type {number}
25
25
  * @memberof Pub
26
26
  */
27
- id?: number;
27
+ id: number;
28
28
  /**
29
29
  * Pub name
30
30
  * @type {string}
31
31
  * @memberof Pub
32
32
  */
33
- name?: string | null;
33
+ name: string | null;
34
34
  /**
35
35
  * Analytic tag to collect number of clic on the pub
36
36
  * @type {string}
@@ -48,13 +48,13 @@ export interface Pub {
48
48
  * @type {HttpLink}
49
49
  * @memberof Pub
50
50
  */
51
- location?: HttpLink;
51
+ location: HttpLink;
52
52
  /**
53
53
  * Value is \'True\' if pub is activated, \'False\' if not
54
54
  * @type {boolean}
55
55
  * @memberof Pub
56
56
  */
57
- active?: boolean;
57
+ active: boolean;
58
58
  /**
59
59
  *
60
60
  * @type {PubSchedule}
@@ -78,7 +78,7 @@ export interface Pub {
78
78
  * @type {HttpLink}
79
79
  * @memberof Pub
80
80
  */
81
- target?: HttpLink;
81
+ target: HttpLink;
82
82
  /**
83
83
  * Total click count
84
84
  * @type {number}
@@ -96,13 +96,13 @@ export interface Pub {
96
96
  * @type {Date}
97
97
  * @memberof Pub
98
98
  */
99
- createdAt?: Date;
99
+ createdAt: Date;
100
100
  /**
101
101
  * Last update date of this pub
102
102
  * @type {Date}
103
103
  * @memberof Pub
104
104
  */
105
- updatedAt?: Date;
105
+ updatedAt: Date;
106
106
  }
107
107
  export declare function PubFromJSON(json: any): Pub;
108
108
  export declare function PubFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pub;
@@ -28,20 +28,20 @@ function PubFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return json;
29
29
  }
30
30
  return {
31
- 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
32
- 'name': !(0, runtime_1.exists)(json, 'name') ? json['name'] : json['name'],
31
+ 'id': json['id'],
32
+ 'name': json['name'],
33
33
  'analyticTag': !(0, runtime_1.exists)(json, 'analyticTag') ? undefined : json['analyticTag'],
34
34
  'tags': !(0, runtime_1.exists)(json, 'tags') ? undefined : json['tags'],
35
- 'location': !(0, runtime_1.exists)(json, 'location') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['location']),
36
- 'active': !(0, runtime_1.exists)(json, 'active') ? undefined : json['active'],
35
+ 'location': (0, HttpLink_1.HttpLinkFromJSON)(json['location']),
36
+ 'active': json['active'],
37
37
  'schedule': !(0, runtime_1.exists)(json, 'schedule') ? undefined : (0, PubSchedule_1.PubScheduleFromJSON)(json['schedule']),
38
38
  'timecard': !(0, runtime_1.exists)(json, 'timecard') ? undefined : (0, PubTimecard_1.PubTimecardFromJSON)(json['timecard']),
39
39
  'image': !(0, runtime_1.exists)(json, 'image') ? undefined : (0, Image_1.ImageFromJSON)(json['image']),
40
- 'target': !(0, runtime_1.exists)(json, 'target') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['target']),
40
+ 'target': (0, HttpLink_1.HttpLinkFromJSON)(json['target']),
41
41
  'clickCount': !(0, runtime_1.exists)(json, 'clickCount') ? undefined : json['clickCount'],
42
42
  'statistics': !(0, runtime_1.exists)(json, 'statistics') ? undefined : (0, HttpLink_1.HttpLinkFromJSON)(json['statistics']),
43
- 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
44
- 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
43
+ 'createdAt': (new Date(json['createdAt'])),
44
+ 'updatedAt': (new Date(json['updatedAt'])),
45
45
  };
46
46
  }
47
47
  exports.PubFromJSONTyped = PubFromJSONTyped;
@@ -65,8 +65,8 @@ function PubToJSON(value) {
65
65
  'target': (0, HttpLink_1.HttpLinkToJSON)(value.target),
66
66
  'clickCount': value.clickCount,
67
67
  'statistics': (0, HttpLink_1.HttpLinkToJSON)(value.statistics),
68
- 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
69
- 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
68
+ 'createdAt': (value.createdAt.toISOString()),
69
+ 'updatedAt': (value.updatedAt.toISOString()),
70
70
  };
71
71
  }
72
72
  exports.PubToJSON = PubToJSON;
@@ -50,7 +50,7 @@ export interface ImageVersions {
50
50
  * @type {string}
51
51
  * @memberof ImageVersions
52
52
  */
53
- original?: string;
53
+ original: string;
54
54
  }
55
55
  export declare function ImageVersionsFromJSON(json: any): ImageVersions;
56
56
  export declare function ImageVersionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageVersions;
@@ -29,7 +29,7 @@ function ImageVersionsFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'medium': !(0, runtime_1.exists)(json, 'medium') ? undefined : json['medium'],
30
30
  'large': !(0, runtime_1.exists)(json, 'large') ? undefined : json['large'],
31
31
  'xlarge': !(0, runtime_1.exists)(json, 'xlarge') ? undefined : json['xlarge'],
32
- 'original': !(0, runtime_1.exists)(json, 'original') ? undefined : json['original'],
32
+ 'original': json['original'],
33
33
  };
34
34
  }
35
35
  exports.ImageVersionsFromJSONTyped = ImageVersionsFromJSONTyped;