@lcdp/api-react-rest-client 2.13.5 → 2.13.6-LDS-4646-claude-security-token.16418756413

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AnyAuthenticationCredential, DisposableTokenCreationParameters, Session } from '../models/index';
13
+ import type { AnyAuthenticationCredential, DisposableTokenCreationParameters, SessionResponse } from '../models/index';
14
14
  export interface CreateDisposableTokenRequest {
15
15
  disposableTokenCreationParameters: DisposableTokenCreationParameters;
16
16
  }
@@ -35,12 +35,12 @@ export declare class AuthApi extends runtime.BaseAPI {
35
35
  * Create a new session with credentials given in request body.
36
36
  * Create a new session
37
37
  */
38
- loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Session | runtime.BlobWithMeta>>;
38
+ loginRaw(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SessionResponse | runtime.BlobWithMeta>>;
39
39
  /**
40
40
  * Create a new session with credentials given in request body.
41
41
  * Create a new session
42
42
  */
43
- login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Session | runtime.BlobWithMeta>;
43
+ login(requestParameters: LoginRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SessionResponse | runtime.BlobWithMeta>;
44
44
  /**
45
45
  *
46
46
  * Delete an existing session
@@ -185,7 +185,7 @@ var AuthApi = /** @class */ (function (_super) {
185
185
  response = _a.sent();
186
186
  contentType = response.headers.get("content-type");
187
187
  if (contentType && contentType.indexOf("application/json") !== -1) {
188
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SessionFromJSON)(jsonValue); })];
188
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SessionResponseFromJSON)(jsonValue); })];
189
189
  }
190
190
  else if (contentType && contentType.indexOf("text/plain") !== -1) {
191
191
  return [2 /*return*/, new runtime.TextApiResponse(response)];
@@ -0,0 +1,37 @@
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 SessionResponse
16
+ */
17
+ export interface SessionResponse {
18
+ /**
19
+ * Expiration of access token in seconds
20
+ * @type {number}
21
+ * @memberof SessionResponse
22
+ */
23
+ expiredIn: number;
24
+ /**
25
+ * Authentication successful message
26
+ * @type {string}
27
+ * @memberof SessionResponse
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SessionResponse interface.
33
+ */
34
+ export declare function instanceOfSessionResponse(value: object): value is SessionResponse;
35
+ export declare function SessionResponseFromJSON(json: any): SessionResponse;
36
+ export declare function SessionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionResponse;
37
+ export declare function SessionResponseToJSON(value?: SessionResponse | 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.SessionResponseToJSON = exports.SessionResponseFromJSONTyped = exports.SessionResponseFromJSON = exports.instanceOfSessionResponse = void 0;
17
+ /**
18
+ * Check if a given object implements the SessionResponse interface.
19
+ */
20
+ function instanceOfSessionResponse(value) {
21
+ if (!('expiredIn' in value) || value['expiredIn'] === undefined)
22
+ return false;
23
+ if (!('message' in value) || value['message'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfSessionResponse = instanceOfSessionResponse;
28
+ function SessionResponseFromJSON(json) {
29
+ return SessionResponseFromJSONTyped(json, false);
30
+ }
31
+ exports.SessionResponseFromJSON = SessionResponseFromJSON;
32
+ function SessionResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'expiredIn': json['expiredIn'],
38
+ 'message': json['message'],
39
+ };
40
+ }
41
+ exports.SessionResponseFromJSONTyped = SessionResponseFromJSONTyped;
42
+ function SessionResponseToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'expiredIn': value['expiredIn'],
48
+ 'message': value['message'],
49
+ };
50
+ }
51
+ exports.SessionResponseToJSON = SessionResponseToJSON;
@@ -17,6 +17,7 @@ export * from './RefreshCredential';
17
17
  export * from './RestError';
18
18
  export * from './RevealedApiKey';
19
19
  export * from './Session';
20
+ export * from './SessionResponse';
20
21
  export * from './User';
21
22
  export * from './UserLink';
22
23
  export * from './UserLinkAllOfCompany';
@@ -35,6 +35,7 @@ __exportStar(require("./RefreshCredential"), exports);
35
35
  __exportStar(require("./RestError"), exports);
36
36
  __exportStar(require("./RevealedApiKey"), exports);
37
37
  __exportStar(require("./Session"), exports);
38
+ __exportStar(require("./SessionResponse"), exports);
38
39
  __exportStar(require("./User"), exports);
39
40
  __exportStar(require("./UserLink"), exports);
40
41
  __exportStar(require("./UserLinkAllOfCompany"), exports);
@@ -56,7 +56,6 @@ export declare const NotificationTypeId: {
56
56
  readonly ORDER_VALIDATED_SELLER: "ORDER_VALIDATED_SELLER";
57
57
  readonly PHARMAIDE_FIRST_SUBSCRIPTION: "PHARMAIDE_FIRST_SUBSCRIPTION";
58
58
  readonly PHARMAIDE_SB_TEST_EXPIRATION: "PHARMAIDE_SB_TEST_EXPIRATION";
59
- readonly PHARMAIDE_TEST_TEST_EXPIRATION: "PHARMAIDE_TEST_TEST_EXPIRATION";
60
59
  readonly REQUEST_FOR_ORDER_INVOICE: "REQUEST_FOR_ORDER_INVOICE";
61
60
  readonly CLIENT_BADGE_RECEIVED: "CLIENT_BADGE_RECEIVED";
62
61
  readonly CLIENT_BADGE_LOST: "CLIENT_BADGE_LOST";
@@ -61,7 +61,6 @@ exports.NotificationTypeId = {
61
61
  ORDER_VALIDATED_SELLER: 'ORDER_VALIDATED_SELLER',
62
62
  PHARMAIDE_FIRST_SUBSCRIPTION: 'PHARMAIDE_FIRST_SUBSCRIPTION',
63
63
  PHARMAIDE_SB_TEST_EXPIRATION: 'PHARMAIDE_SB_TEST_EXPIRATION',
64
- PHARMAIDE_TEST_TEST_EXPIRATION: 'PHARMAIDE_TEST_TEST_EXPIRATION',
65
64
  REQUEST_FOR_ORDER_INVOICE: 'REQUEST_FOR_ORDER_INVOICE',
66
65
  CLIENT_BADGE_RECEIVED: 'CLIENT_BADGE_RECEIVED',
67
66
  CLIENT_BADGE_LOST: 'CLIENT_BADGE_LOST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.13.5",
3
+ "version": "2.13.6-LDS-4646-claude-security-token.16418756413",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -16,7 +16,6 @@
16
16
  export declare const UserRole: {
17
17
  readonly SUBSCRIPTION_IN_PROGRESS: "SUBSCRIPTION_IN_PROGRESS";
18
18
  readonly WAITING: "WAITING";
19
- readonly TEST: "TEST";
20
19
  readonly SELLER_BUYER: "SELLER_BUYER";
21
20
  readonly ARCHIVED: "ARCHIVED";
22
21
  readonly BLOCKED: "BLOCKED";
@@ -21,7 +21,6 @@ exports.UserRoleToJSON = exports.UserRoleFromJSONTyped = exports.UserRoleFromJSO
21
21
  exports.UserRole = {
22
22
  SUBSCRIPTION_IN_PROGRESS: 'SUBSCRIPTION_IN_PROGRESS',
23
23
  WAITING: 'WAITING',
24
- TEST: 'TEST',
25
24
  SELLER_BUYER: 'SELLER_BUYER',
26
25
  ARCHIVED: 'ARCHIVED',
27
26
  BLOCKED: 'BLOCKED',
@@ -56,7 +56,6 @@ export declare const NotificationTypeId: {
56
56
  readonly ORDER_VALIDATED_SELLER: "ORDER_VALIDATED_SELLER";
57
57
  readonly PHARMAIDE_FIRST_SUBSCRIPTION: "PHARMAIDE_FIRST_SUBSCRIPTION";
58
58
  readonly PHARMAIDE_SB_TEST_EXPIRATION: "PHARMAIDE_SB_TEST_EXPIRATION";
59
- readonly PHARMAIDE_TEST_TEST_EXPIRATION: "PHARMAIDE_TEST_TEST_EXPIRATION";
60
59
  readonly REQUEST_FOR_ORDER_INVOICE: "REQUEST_FOR_ORDER_INVOICE";
61
60
  readonly CLIENT_BADGE_RECEIVED: "CLIENT_BADGE_RECEIVED";
62
61
  readonly CLIENT_BADGE_LOST: "CLIENT_BADGE_LOST";
@@ -61,7 +61,6 @@ exports.NotificationTypeId = {
61
61
  ORDER_VALIDATED_SELLER: 'ORDER_VALIDATED_SELLER',
62
62
  PHARMAIDE_FIRST_SUBSCRIPTION: 'PHARMAIDE_FIRST_SUBSCRIPTION',
63
63
  PHARMAIDE_SB_TEST_EXPIRATION: 'PHARMAIDE_SB_TEST_EXPIRATION',
64
- PHARMAIDE_TEST_TEST_EXPIRATION: 'PHARMAIDE_TEST_TEST_EXPIRATION',
65
64
  REQUEST_FOR_ORDER_INVOICE: 'REQUEST_FOR_ORDER_INVOICE',
66
65
  CLIENT_BADGE_RECEIVED: 'CLIENT_BADGE_RECEIVED',
67
66
  CLIENT_BADGE_LOST: 'CLIENT_BADGE_LOST',
@@ -16,7 +16,6 @@
16
16
  export declare const UserRole: {
17
17
  readonly SUBSCRIPTION_IN_PROGRESS: "SUBSCRIPTION_IN_PROGRESS";
18
18
  readonly WAITING: "WAITING";
19
- readonly TEST: "TEST";
20
19
  readonly SELLER_BUYER: "SELLER_BUYER";
21
20
  readonly ARCHIVED: "ARCHIVED";
22
21
  readonly BLOCKED: "BLOCKED";
@@ -21,7 +21,6 @@ exports.UserRoleToJSON = exports.UserRoleFromJSONTyped = exports.UserRoleFromJSO
21
21
  exports.UserRole = {
22
22
  SUBSCRIPTION_IN_PROGRESS: 'SUBSCRIPTION_IN_PROGRESS',
23
23
  WAITING: 'WAITING',
24
- TEST: 'TEST',
25
24
  SELLER_BUYER: 'SELLER_BUYER',
26
25
  ARCHIVED: 'ARCHIVED',
27
26
  BLOCKED: 'BLOCKED',