@lcdp/api-react-rest-client 3.1.7 → 3.1.8

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.
@@ -1,6 +1,4 @@
1
- export * from './AnonymousUser';
2
1
  export * from './AnyAuthenticationCredential';
3
- export * from './AnyUser';
4
2
  export * from './ApiKey';
5
3
  export * from './ApiKeyCreationParameters';
6
4
  export * from './ApiKeyCredential';
@@ -8,7 +6,6 @@ export * from './AuthenticationCredential';
8
6
  export * from './DisposableCredential';
9
7
  export * from './DisposableTokenCreationParameters';
10
8
  export * from './HttpLink';
11
- export * from './IdentifiedUser';
12
9
  export * from './LoginCredential';
13
10
  export * from './PaginatedApiKeys';
14
11
  export * from './PaginatedObject';
@@ -17,6 +14,5 @@ export * from './RefreshCredential';
17
14
  export * from './RestError';
18
15
  export * from './RevealedApiKey';
19
16
  export * from './Session';
20
- export * from './User';
21
17
  export * from './UserLink';
22
18
  export * from './UserLinkAllOfCompany';
@@ -16,9 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
- __exportStar(require("./AnonymousUser"), exports);
20
19
  __exportStar(require("./AnyAuthenticationCredential"), exports);
21
- __exportStar(require("./AnyUser"), exports);
22
20
  __exportStar(require("./ApiKey"), exports);
23
21
  __exportStar(require("./ApiKeyCreationParameters"), exports);
24
22
  __exportStar(require("./ApiKeyCredential"), exports);
@@ -26,7 +24,6 @@ __exportStar(require("./AuthenticationCredential"), exports);
26
24
  __exportStar(require("./DisposableCredential"), exports);
27
25
  __exportStar(require("./DisposableTokenCreationParameters"), exports);
28
26
  __exportStar(require("./HttpLink"), exports);
29
- __exportStar(require("./IdentifiedUser"), exports);
30
27
  __exportStar(require("./LoginCredential"), exports);
31
28
  __exportStar(require("./PaginatedApiKeys"), exports);
32
29
  __exportStar(require("./PaginatedObject"), exports);
@@ -35,6 +32,5 @@ __exportStar(require("./RefreshCredential"), exports);
35
32
  __exportStar(require("./RestError"), exports);
36
33
  __exportStar(require("./RevealedApiKey"), exports);
37
34
  __exportStar(require("./Session"), exports);
38
- __exportStar(require("./User"), exports);
39
35
  __exportStar(require("./UserLink"), exports);
40
36
  __exportStar(require("./UserLinkAllOfCompany"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "3.1.7",
3
+ "version": "3.1.8",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -1,43 +0,0 @@
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
- *
14
- * @export
15
- * @interface AnonymousUser
16
- */
17
- export interface AnonymousUser {
18
- /**
19
- * Type of user
20
- * @type {string}
21
- * @memberof AnonymousUser
22
- */
23
- type: string;
24
- /**
25
- * User email
26
- * @type {string}
27
- * @memberof AnonymousUser
28
- */
29
- email: string;
30
- /**
31
- * CIP of user pharma
32
- * @type {string}
33
- * @memberof AnonymousUser
34
- */
35
- cipPharma: string;
36
- }
37
- /**
38
- * Check if a given object implements the AnonymousUser interface.
39
- */
40
- export declare function instanceOfAnonymousUser(value: object): value is AnonymousUser;
41
- export declare function AnonymousUserFromJSON(json: any): AnonymousUser;
42
- export declare function AnonymousUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnonymousUser;
43
- export declare function AnonymousUserToJSON(value?: AnonymousUser | null): any;
@@ -1,55 +0,0 @@
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.AnonymousUserToJSON = exports.AnonymousUserFromJSONTyped = exports.AnonymousUserFromJSON = exports.instanceOfAnonymousUser = void 0;
17
- /**
18
- * Check if a given object implements the AnonymousUser interface.
19
- */
20
- function instanceOfAnonymousUser(value) {
21
- if (!('type' in value) || value['type'] === undefined)
22
- return false;
23
- if (!('email' in value) || value['email'] === undefined)
24
- return false;
25
- if (!('cipPharma' in value) || value['cipPharma'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- exports.instanceOfAnonymousUser = instanceOfAnonymousUser;
30
- function AnonymousUserFromJSON(json) {
31
- return AnonymousUserFromJSONTyped(json, false);
32
- }
33
- exports.AnonymousUserFromJSON = AnonymousUserFromJSON;
34
- function AnonymousUserFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'type': json['type'],
40
- 'email': json['email'],
41
- 'cipPharma': json['cipPharma'],
42
- };
43
- }
44
- exports.AnonymousUserFromJSONTyped = AnonymousUserFromJSONTyped;
45
- function AnonymousUserToJSON(value) {
46
- if (value == null) {
47
- return value;
48
- }
49
- return {
50
- 'type': value['type'],
51
- 'email': value['email'],
52
- 'cipPharma': value['cipPharma'],
53
- };
54
- }
55
- exports.AnonymousUserToJSON = AnonymousUserToJSON;
@@ -1,26 +0,0 @@
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 { AnonymousUser } from './AnonymousUser';
13
- import type { IdentifiedUser } from './IdentifiedUser';
14
- /**
15
- * @type AnyUser
16
- *
17
- * @export
18
- */
19
- export declare type AnyUser = {
20
- type: 'ANONYMOUS';
21
- } & AnonymousUser | {
22
- type: 'IDENTIFIED';
23
- } & IdentifiedUser;
24
- export declare function AnyUserFromJSON(json: any): AnyUser;
25
- export declare function AnyUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyUser;
26
- export declare function AnyUserToJSON(value?: AnyUser | null): any;
@@ -1,50 +0,0 @@
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.AnyUserToJSON = exports.AnyUserFromJSONTyped = exports.AnyUserFromJSON = void 0;
17
- var AnonymousUser_1 = require("./AnonymousUser");
18
- var IdentifiedUser_1 = require("./IdentifiedUser");
19
- function AnyUserFromJSON(json) {
20
- return AnyUserFromJSONTyped(json, false);
21
- }
22
- exports.AnyUserFromJSON = AnyUserFromJSON;
23
- function AnyUserFromJSONTyped(json, ignoreDiscriminator) {
24
- if (json == null) {
25
- return json;
26
- }
27
- switch (json['type']) {
28
- case 'ANONYMOUS':
29
- return Object.assign({}, (0, AnonymousUser_1.AnonymousUserFromJSONTyped)(json, true), { type: 'ANONYMOUS' });
30
- case 'IDENTIFIED':
31
- return Object.assign({}, (0, IdentifiedUser_1.IdentifiedUserFromJSONTyped)(json, true), { type: 'IDENTIFIED' });
32
- default:
33
- throw new Error("No variant of AnyUser exists with 'type=".concat(json['type'], "'"));
34
- }
35
- }
36
- exports.AnyUserFromJSONTyped = AnyUserFromJSONTyped;
37
- function AnyUserToJSON(value) {
38
- if (value == null) {
39
- return value;
40
- }
41
- switch (value['type']) {
42
- case 'ANONYMOUS':
43
- return (0, AnonymousUser_1.AnonymousUserToJSON)(value);
44
- case 'IDENTIFIED':
45
- return (0, IdentifiedUser_1.IdentifiedUserToJSON)(value);
46
- default:
47
- throw new Error("No variant of AnyUser exists with 'type=".concat(value['type'], "'"));
48
- }
49
- }
50
- exports.AnyUserToJSON = AnyUserToJSON;
@@ -1,37 +0,0 @@
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
- *
14
- * @export
15
- * @interface IdentifiedUser
16
- */
17
- export interface IdentifiedUser {
18
- /**
19
- * Type of user
20
- * @type {string}
21
- * @memberof IdentifiedUser
22
- */
23
- type: string;
24
- /**
25
- * Unique external id identifying this user
26
- * @type {string}
27
- * @memberof IdentifiedUser
28
- */
29
- externalId: string;
30
- }
31
- /**
32
- * Check if a given object implements the IdentifiedUser interface.
33
- */
34
- export declare function instanceOfIdentifiedUser(value: object): value is IdentifiedUser;
35
- export declare function IdentifiedUserFromJSON(json: any): IdentifiedUser;
36
- export declare function IdentifiedUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedUser;
37
- export declare function IdentifiedUserToJSON(value?: IdentifiedUser | null): any;
@@ -1,51 +0,0 @@
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.IdentifiedUserToJSON = exports.IdentifiedUserFromJSONTyped = exports.IdentifiedUserFromJSON = exports.instanceOfIdentifiedUser = void 0;
17
- /**
18
- * Check if a given object implements the IdentifiedUser interface.
19
- */
20
- function instanceOfIdentifiedUser(value) {
21
- if (!('type' in value) || value['type'] === undefined)
22
- return false;
23
- if (!('externalId' in value) || value['externalId'] === undefined)
24
- return false;
25
- return true;
26
- }
27
- exports.instanceOfIdentifiedUser = instanceOfIdentifiedUser;
28
- function IdentifiedUserFromJSON(json) {
29
- return IdentifiedUserFromJSONTyped(json, false);
30
- }
31
- exports.IdentifiedUserFromJSON = IdentifiedUserFromJSON;
32
- function IdentifiedUserFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'type': json['type'],
38
- 'externalId': json['externalId'],
39
- };
40
- }
41
- exports.IdentifiedUserFromJSONTyped = IdentifiedUserFromJSONTyped;
42
- function IdentifiedUserToJSON(value) {
43
- if (value == null) {
44
- return value;
45
- }
46
- return {
47
- 'type': value['type'],
48
- 'externalId': value['externalId'],
49
- };
50
- }
51
- exports.IdentifiedUserToJSON = IdentifiedUserToJSON;
@@ -1,31 +0,0 @@
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
- *
14
- * @export
15
- * @interface User
16
- */
17
- export interface User {
18
- /**
19
- * Type of user
20
- * @type {string}
21
- * @memberof User
22
- */
23
- type: string;
24
- }
25
- /**
26
- * Check if a given object implements the User interface.
27
- */
28
- export declare function instanceOfUser(value: object): value is User;
29
- export declare function UserFromJSON(json: any): User;
30
- export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User;
31
- export declare function UserToJSON(value?: User | null): any;
@@ -1,47 +0,0 @@
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.UserToJSON = exports.UserFromJSONTyped = exports.UserFromJSON = exports.instanceOfUser = void 0;
17
- /**
18
- * Check if a given object implements the User interface.
19
- */
20
- function instanceOfUser(value) {
21
- if (!('type' in value) || value['type'] === undefined)
22
- return false;
23
- return true;
24
- }
25
- exports.instanceOfUser = instanceOfUser;
26
- function UserFromJSON(json) {
27
- return UserFromJSONTyped(json, false);
28
- }
29
- exports.UserFromJSON = UserFromJSON;
30
- function UserFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'type': json['type'],
36
- };
37
- }
38
- exports.UserFromJSONTyped = UserFromJSONTyped;
39
- function UserToJSON(value) {
40
- if (value == null) {
41
- return value;
42
- }
43
- return {
44
- 'type': value['type'],
45
- };
46
- }
47
- exports.UserToJSON = UserToJSON;