@lcdp/api-react-rest-client 2.14.7-LDS-5158-api-faire-en-sorte-que-le-front.19545047381 → 2.14.7-LDS-5158-api-faire-en-sorte-que-le-front.19571710433

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.14.7-LDS-5158-api-faire-en-sorte-que-le-front.19545047381",
3
+ "version": "2.14.7-LDS-5158-api-faire-en-sorte-que-le-front.19571710433",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -0,0 +1,28 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
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
+ * UNAVAILABLE : Can not be managed, nothing to do
14
+ * AVAILABLE : Can be modified through proxy consent
15
+ * ERROR : Something bad occured about this consent
16
+ *
17
+ * @export
18
+ */
19
+ export declare const ConsentStatus: {
20
+ readonly UNAVAILABLE: "UNAVAILABLE";
21
+ readonly AVAILABLE: "AVAILABLE";
22
+ readonly ERROR: "ERROR";
23
+ };
24
+ export declare type ConsentStatus = typeof ConsentStatus[keyof typeof ConsentStatus];
25
+ export declare function instanceOfConsentStatus(value: any): boolean;
26
+ export declare function ConsentStatusFromJSON(json: any): ConsentStatus;
27
+ export declare function ConsentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentStatus;
28
+ export declare function ConsentStatusToJSON(value?: ConsentStatus | null): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
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.ConsentStatusToJSON = exports.ConsentStatusFromJSONTyped = exports.ConsentStatusFromJSON = exports.instanceOfConsentStatus = exports.ConsentStatus = void 0;
17
+ /**
18
+ * UNAVAILABLE : Can not be managed, nothing to do
19
+ * AVAILABLE : Can be modified through proxy consent
20
+ * ERROR : Something bad occured about this consent
21
+ *
22
+ * @export
23
+ */
24
+ exports.ConsentStatus = {
25
+ UNAVAILABLE: 'UNAVAILABLE',
26
+ AVAILABLE: 'AVAILABLE',
27
+ ERROR: 'ERROR'
28
+ };
29
+ function instanceOfConsentStatus(value) {
30
+ for (var key in exports.ConsentStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(exports.ConsentStatus, key)) {
32
+ if (exports.ConsentStatus[key] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+ exports.instanceOfConsentStatus = instanceOfConsentStatus;
40
+ function ConsentStatusFromJSON(json) {
41
+ return ConsentStatusFromJSONTyped(json, false);
42
+ }
43
+ exports.ConsentStatusFromJSON = ConsentStatusFromJSON;
44
+ function ConsentStatusFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ exports.ConsentStatusFromJSONTyped = ConsentStatusFromJSONTyped;
48
+ function ConsentStatusToJSON(value) {
49
+ return value;
50
+ }
51
+ exports.ConsentStatusToJSON = ConsentStatusToJSON;
@@ -23,6 +23,7 @@ import type { UserThreads } from './UserThreads';
23
23
  import type { UserWallets } from './UserWallets';
24
24
  import type { UserRole } from './UserRole';
25
25
  import type { KycLevel } from './KycLevel';
26
+ import type { UserMangopayConsents } from './UserMangopayConsents';
26
27
  import type { RestrictedProductStorageType } from './RestrictedProductStorageType';
27
28
  import type { UserJournal } from './UserJournal';
28
29
  /**
@@ -299,6 +300,12 @@ export interface User {
299
300
  * @memberof User
300
301
  */
301
302
  isMangopaySynced?: boolean;
303
+ /**
304
+ *
305
+ * @type {UserMangopayConsents}
306
+ * @memberof User
307
+ */
308
+ mangopayConsents?: UserMangopayConsents;
302
309
  /**
303
310
  * Last update date
304
311
  * @type {Date}
@@ -29,6 +29,7 @@ var UserThreads_1 = require("./UserThreads");
29
29
  var UserWallets_1 = require("./UserWallets");
30
30
  var UserRole_1 = require("./UserRole");
31
31
  var KycLevel_1 = require("./KycLevel");
32
+ var UserMangopayConsents_1 = require("./UserMangopayConsents");
32
33
  var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
33
34
  var UserJournal_1 = require("./UserJournal");
34
35
  /**
@@ -109,6 +110,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
109
110
  'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
110
111
  'tags': json['tags'],
111
112
  'isMangopaySynced': json['isMangopaySynced'],
113
+ 'mangopayConsents': (json['mangopayConsents'] === null || json['mangopayConsents'] === undefined) ? json['mangopayConsents'] : (0, UserMangopayConsents_1.UserMangopayConsentsFromJSON)(json['mangopayConsents']),
112
114
  'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
113
115
  'createdAt': (json['createdAt'] === null || json['createdAt'] === undefined) ? json['createdAt'] : new Date(json['createdAt']),
114
116
  'journal': (json['journal'] === null || json['journal'] === undefined) ? json['journal'] : (0, UserJournal_1.UserJournalFromJSON)(json['journal']),
@@ -168,6 +170,7 @@ function UserToJSON(value) {
168
170
  'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
169
171
  'tags': value['tags'],
170
172
  'isMangopaySynced': value['isMangopaySynced'],
173
+ 'mangopayConsents': (0, UserMangopayConsents_1.UserMangopayConsentsToJSON)(value['mangopayConsents']),
171
174
  'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
172
175
  'createdAt': (value['createdAt'] === null || value['createdAt'] === undefined) ? value['createdAt'] : (value['createdAt']).toISOString(),
173
176
  'journal': (0, UserJournal_1.UserJournalToJSON)(value['journal']),
@@ -0,0 +1,32 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
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 { ConsentStatus } from './ConsentStatus';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserMangopayConsents
17
+ */
18
+ export interface UserMangopayConsents {
19
+ /**
20
+ *
21
+ * @type {ConsentStatus}
22
+ * @memberof UserMangopayConsents
23
+ */
24
+ executePayments?: ConsentStatus;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UserMangopayConsents interface.
28
+ */
29
+ export declare function instanceOfUserMangopayConsents(value: object): value is UserMangopayConsents;
30
+ export declare function UserMangopayConsentsFromJSON(json: any): UserMangopayConsents;
31
+ export declare function UserMangopayConsentsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserMangopayConsents;
32
+ export declare function UserMangopayConsentsToJSON(value?: UserMangopayConsents | null): any;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
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.UserMangopayConsentsToJSON = exports.UserMangopayConsentsFromJSONTyped = exports.UserMangopayConsentsFromJSON = exports.instanceOfUserMangopayConsents = void 0;
17
+ var ConsentStatus_1 = require("./ConsentStatus");
18
+ /**
19
+ * Check if a given object implements the UserMangopayConsents interface.
20
+ */
21
+ function instanceOfUserMangopayConsents(value) {
22
+ return true;
23
+ }
24
+ exports.instanceOfUserMangopayConsents = instanceOfUserMangopayConsents;
25
+ function UserMangopayConsentsFromJSON(json) {
26
+ return UserMangopayConsentsFromJSONTyped(json, false);
27
+ }
28
+ exports.UserMangopayConsentsFromJSON = UserMangopayConsentsFromJSON;
29
+ function UserMangopayConsentsFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'executePayments': (json['executePayments'] === null || json['executePayments'] === undefined) ? json['executePayments'] : (0, ConsentStatus_1.ConsentStatusFromJSON)(json['executePayments']),
35
+ };
36
+ }
37
+ exports.UserMangopayConsentsFromJSONTyped = UserMangopayConsentsFromJSONTyped;
38
+ function UserMangopayConsentsToJSON(value) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'executePayments': (0, ConsentStatus_1.ConsentStatusToJSON)(value['executePayments']),
44
+ };
45
+ }
46
+ exports.UserMangopayConsentsToJSON = UserMangopayConsentsToJSON;
@@ -1,4 +1,5 @@
1
1
  export * from './Address';
2
+ export * from './ConsentStatus';
2
3
  export * from './Gender';
3
4
  export * from './HttpLink';
4
5
  export * from './KycLevel';
@@ -36,6 +37,7 @@ export * from './UserFeature';
36
37
  export * from './UserForbiddenSellerLink';
37
38
  export * from './UserJournal';
38
39
  export * from './UserJournalUpdateParameters';
40
+ export * from './UserMangopayConsents';
39
41
  export * from './UserMangopayTarget';
40
42
  export * from './UserRestrictedFeatureCreationParameter';
41
43
  export * from './UserRestrictedNotificationTypeCreationParameter';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./Address"), exports);
20
+ __exportStar(require("./ConsentStatus"), exports);
20
21
  __exportStar(require("./Gender"), exports);
21
22
  __exportStar(require("./HttpLink"), exports);
22
23
  __exportStar(require("./KycLevel"), exports);
@@ -54,6 +55,7 @@ __exportStar(require("./UserFeature"), exports);
54
55
  __exportStar(require("./UserForbiddenSellerLink"), exports);
55
56
  __exportStar(require("./UserJournal"), exports);
56
57
  __exportStar(require("./UserJournalUpdateParameters"), exports);
58
+ __exportStar(require("./UserMangopayConsents"), exports);
57
59
  __exportStar(require("./UserMangopayTarget"), exports);
58
60
  __exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
59
61
  __exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);