@lcdp/api-react-rest-client 2.14.2-develop.18128998071 → 2.14.3-LDS-4938-monolith-repousser-la-fin-du-tr.18133250966
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/chargebee-hook/index.d.ts +1 -0
- package/chargebee-hook/index.js +17 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +31 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +134 -0
- package/chargebee-hook/src/apis/index.d.ts +1 -0
- package/chargebee-hook/src/apis/index.js +19 -0
- package/chargebee-hook/src/index.d.ts +3 -0
- package/chargebee-hook/src/index.js +21 -0
- package/chargebee-hook/src/models/HookRequest.d.ts +85 -0
- package/chargebee-hook/src/models/HookRequest.js +67 -0
- package/chargebee-hook/src/models/RestError.d.ts +103 -0
- package/chargebee-hook/src/models/RestError.js +113 -0
- package/chargebee-hook/src/models/index.d.ts +2 -0
- package/chargebee-hook/src/models/index.js +20 -0
- package/chargebee-hook/src/runtime.d.ts +190 -0
- package/chargebee-hook/src/runtime.js +598 -0
- package/package.json +1 -1
- package/rfx/src/apis/ManageRffApi.d.ts +29 -0
- package/rfx/src/apis/ManageRffApi.js +146 -0
- package/rfx/src/apis/index.d.ts +1 -0
- package/rfx/src/apis/index.js +1 -0
- package/rfx/src/models/RffCreationParameters.d.ts +37 -0
- package/rfx/src/models/RffCreationParameters.js +51 -0
- package/rfx/src/models/index.d.ts +1 -0
- package/rfx/src/models/index.js +1 -0
- package/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +5 -2
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +5 -2
- package/user/src/models/OffisanteStatus.d.ts +3 -1
- package/user/src/models/OffisanteStatus.js +4 -2
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of RFx (Request For X)
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (_) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ManageRffApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ManageRffApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ManageRffApi, _super);
|
|
75
|
+
function ManageRffApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Create request for feature
|
|
80
|
+
*/
|
|
81
|
+
ManageRffApi.prototype.createRffRaw = function (requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
86
|
+
case 0:
|
|
87
|
+
queryParameters = {};
|
|
88
|
+
headerParameters = {};
|
|
89
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
91
|
+
_a = headerParameters;
|
|
92
|
+
_b = "x-api-key";
|
|
93
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
94
|
+
case 1:
|
|
95
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
96
|
+
_c.label = 2;
|
|
97
|
+
case 2:
|
|
98
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
99
|
+
token = this.configuration.accessToken;
|
|
100
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
101
|
+
case 3:
|
|
102
|
+
tokenString = _c.sent();
|
|
103
|
+
if (tokenString) {
|
|
104
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
105
|
+
}
|
|
106
|
+
_c.label = 4;
|
|
107
|
+
case 4:
|
|
108
|
+
_c.trys.push([4, 6, , 7]);
|
|
109
|
+
return [4 /*yield*/, this.request({
|
|
110
|
+
path: "/rffs",
|
|
111
|
+
method: 'POST',
|
|
112
|
+
headers: headerParameters,
|
|
113
|
+
query: queryParameters,
|
|
114
|
+
body: (0, index_1.RffCreationParametersToJSON)(requestParameters['rffCreationParameters']),
|
|
115
|
+
}, initOverrides)];
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
118
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
119
|
+
case 6:
|
|
120
|
+
response_1 = _c.sent();
|
|
121
|
+
console.debug(response_1);
|
|
122
|
+
throw response_1;
|
|
123
|
+
case 7: return [2 /*return*/];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Create request for feature
|
|
130
|
+
*/
|
|
131
|
+
ManageRffApi.prototype.createRff = function (requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
return __generator(this, function (_a) {
|
|
135
|
+
switch (_a.label) {
|
|
136
|
+
case 0: return [4 /*yield*/, this.createRffRaw(requestParameters, initOverrides)];
|
|
137
|
+
case 1:
|
|
138
|
+
_a.sent();
|
|
139
|
+
return [2 /*return*/];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
return ManageRffApi;
|
|
145
|
+
}(runtime.BaseAPI));
|
|
146
|
+
exports.ManageRffApi = ManageRffApi;
|
package/rfx/src/apis/index.d.ts
CHANGED
package/rfx/src/apis/index.js
CHANGED
|
@@ -16,6 +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("./ManageRffApi"), exports);
|
|
19
20
|
__exportStar(require("./ManageRfiApi"), exports);
|
|
20
21
|
__exportStar(require("./ManageRfilApi"), exports);
|
|
21
22
|
__exportStar(require("./ManageRfoiApi"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of RFx (Request For X)
|
|
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 RffCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface RffCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RffCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the feature the user is interested in
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RffCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
featureName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRffCreationParameters(value: object): value is RffCreationParameters;
|
|
35
|
+
export declare function RffCreationParametersFromJSON(json: any): RffCreationParameters;
|
|
36
|
+
export declare function RffCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RffCreationParameters;
|
|
37
|
+
export declare function RffCreationParametersToJSON(value?: RffCreationParameters | 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 RFx (Request For X)
|
|
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.RffCreationParametersToJSON = exports.RffCreationParametersFromJSONTyped = exports.RffCreationParametersFromJSON = exports.instanceOfRffCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRffCreationParameters(value) {
|
|
21
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('featureName' in value) || value['featureName'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfRffCreationParameters = instanceOfRffCreationParameters;
|
|
28
|
+
function RffCreationParametersFromJSON(json) {
|
|
29
|
+
return RffCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.RffCreationParametersFromJSON = RffCreationParametersFromJSON;
|
|
32
|
+
function RffCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'userId': json['userId'],
|
|
38
|
+
'featureName': json['featureName'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.RffCreationParametersFromJSONTyped = RffCreationParametersFromJSONTyped;
|
|
42
|
+
function RffCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': value['userId'],
|
|
48
|
+
'featureName': value['featureName'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.RffCreationParametersToJSON = RffCreationParametersToJSON;
|
|
@@ -4,6 +4,7 @@ export * from './PaginatedObject';
|
|
|
4
4
|
export * from './PaginatedRfois';
|
|
5
5
|
export * from './PagingMetadata';
|
|
6
6
|
export * from './RestError';
|
|
7
|
+
export * from './RffCreationParameters';
|
|
7
8
|
export * from './RfiCreationParameters';
|
|
8
9
|
export * from './RfilCreationParameters';
|
|
9
10
|
export * from './RfoCreationParameters';
|
package/rfx/src/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./PaginatedObject"), exports);
|
|
|
22
22
|
__exportStar(require("./PaginatedRfois"), exports);
|
|
23
23
|
__exportStar(require("./PagingMetadata"), exports);
|
|
24
24
|
__exportStar(require("./RestError"), exports);
|
|
25
|
+
__exportStar(require("./RffCreationParameters"), exports);
|
|
25
26
|
__exportStar(require("./RfiCreationParameters"), exports);
|
|
26
27
|
__exportStar(require("./RfilCreationParameters"), exports);
|
|
27
28
|
__exportStar(require("./RfoCreationParameters"), exports);
|
|
@@ -32,8 +32,11 @@ export interface ThirdPartyLinkCreationParameters {
|
|
|
32
32
|
* @export
|
|
33
33
|
*/
|
|
34
34
|
export declare const ThirdPartyLinkCreationParametersSlugEnum: {
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
35
|
+
readonly BADGES_PHARMACY_STATISTICS_DASHBOARD: "BADGES_PHARMACY_STATISTICS_DASHBOARD";
|
|
36
|
+
readonly BADGES_LABORATORY_STATISTICS_DASHBOARD: "BADGES_LABORATORY_STATISTICS_DASHBOARD";
|
|
37
|
+
readonly SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: "SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE";
|
|
38
|
+
readonly SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: "SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE";
|
|
39
|
+
readonly SUBSCRIPTIONS_USER_PORTAL: "SUBSCRIPTIONS_USER_PORTAL";
|
|
37
40
|
};
|
|
38
41
|
export declare type ThirdPartyLinkCreationParametersSlugEnum = typeof ThirdPartyLinkCreationParametersSlugEnum[keyof typeof ThirdPartyLinkCreationParametersSlugEnum];
|
|
39
42
|
/**
|
|
@@ -18,8 +18,11 @@ exports.ThirdPartyLinkCreationParametersToJSON = exports.ThirdPartyLinkCreationP
|
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
exports.ThirdPartyLinkCreationParametersSlugEnum = {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
BADGES_PHARMACY_STATISTICS_DASHBOARD: 'BADGES_PHARMACY_STATISTICS_DASHBOARD',
|
|
22
|
+
BADGES_LABORATORY_STATISTICS_DASHBOARD: 'BADGES_LABORATORY_STATISTICS_DASHBOARD',
|
|
23
|
+
SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE: 'SUBSCRIPTIONS_PHARMAIDE_USER_PRICING_PAGE',
|
|
24
|
+
SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE: 'SUBSCRIPTIONS_LOGISTIC_USER_PRICING_PAGE',
|
|
25
|
+
SUBSCRIPTIONS_USER_PORTAL: 'SUBSCRIPTIONS_USER_PORTAL'
|
|
23
26
|
};
|
|
24
27
|
/**
|
|
25
28
|
* Check if a given object implements the ThirdPartyLinkCreationParameters interface.
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Status of company in our system against Offisante system.
|
|
14
|
-
* SET : Offisante know this resource
|
|
14
|
+
* SET : Offisante know this resource but not yet its stock
|
|
15
15
|
* NOT_SET : Offisante do not know this resource
|
|
16
16
|
* IN_PROGRESS : Offisante is going to know this resource in the future
|
|
17
|
+
* RUN : Offisante know this resource and its stock
|
|
17
18
|
*
|
|
18
19
|
* @export
|
|
19
20
|
*/
|
|
@@ -21,6 +22,7 @@ export declare const OffisanteStatus: {
|
|
|
21
22
|
readonly SET: "SET";
|
|
22
23
|
readonly NOT_SET: "NOT_SET";
|
|
23
24
|
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
25
|
+
readonly RUN: "RUN";
|
|
24
26
|
};
|
|
25
27
|
export declare type OffisanteStatus = typeof OffisanteStatus[keyof typeof OffisanteStatus];
|
|
26
28
|
export declare function instanceOfOffisanteStatus(value: any): boolean;
|
|
@@ -16,16 +16,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.OffisanteStatusToJSON = exports.OffisanteStatusFromJSONTyped = exports.OffisanteStatusFromJSON = exports.instanceOfOffisanteStatus = exports.OffisanteStatus = void 0;
|
|
17
17
|
/**
|
|
18
18
|
* Status of company in our system against Offisante system.
|
|
19
|
-
* SET : Offisante know this resource
|
|
19
|
+
* SET : Offisante know this resource but not yet its stock
|
|
20
20
|
* NOT_SET : Offisante do not know this resource
|
|
21
21
|
* IN_PROGRESS : Offisante is going to know this resource in the future
|
|
22
|
+
* RUN : Offisante know this resource and its stock
|
|
22
23
|
*
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
26
|
exports.OffisanteStatus = {
|
|
26
27
|
SET: 'SET',
|
|
27
28
|
NOT_SET: 'NOT_SET',
|
|
28
|
-
IN_PROGRESS: 'IN_PROGRESS'
|
|
29
|
+
IN_PROGRESS: 'IN_PROGRESS',
|
|
30
|
+
RUN: 'RUN'
|
|
29
31
|
};
|
|
30
32
|
function instanceOfOffisanteStatus(value) {
|
|
31
33
|
for (var key in exports.OffisanteStatus) {
|