@msm-platform/customer-sdk 0.3.0 → 0.3.1
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/CHANGELOG.md +6 -0
- package/dist/generated/api.d.ts +93 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@msm-platform/customer-sdk`. The format follows [Keep a
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.3.1] - 2026-11-16
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `GET /web/me/backoffice` (`getMyBackofficeAccess`) with a customer session answers `{ available }`: true when the signed-in person is one of your partner operators or staff of one of your businesses, so your back office has work for them, and false otherwise. Use it to show a link to your back office; it says nothing else about them, and the back office still asks them to sign in.
|
|
12
|
+
|
|
7
13
|
## [0.3.0] - 2026-11-16
|
|
8
14
|
|
|
9
15
|
### Added
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -221,6 +221,23 @@ export interface paths {
|
|
|
221
221
|
patch: operations["updateMyName"];
|
|
222
222
|
trace?: never;
|
|
223
223
|
};
|
|
224
|
+
"/web/me/backoffice": {
|
|
225
|
+
parameters: {
|
|
226
|
+
query?: never;
|
|
227
|
+
header?: never;
|
|
228
|
+
path?: never;
|
|
229
|
+
cookie?: never;
|
|
230
|
+
};
|
|
231
|
+
/** Whether you are a partner operator of this client's partner or staff of one of its businesses, so its back office has work for you; yes or no only */
|
|
232
|
+
get: operations["getMyBackofficeAccess"];
|
|
233
|
+
put?: never;
|
|
234
|
+
post?: never;
|
|
235
|
+
delete?: never;
|
|
236
|
+
options?: never;
|
|
237
|
+
head?: never;
|
|
238
|
+
patch?: never;
|
|
239
|
+
trace?: never;
|
|
240
|
+
};
|
|
224
241
|
"/web/me/bookings": {
|
|
225
242
|
parameters: {
|
|
226
243
|
query?: never;
|
|
@@ -2301,6 +2318,82 @@ export interface operations {
|
|
|
2301
2318
|
};
|
|
2302
2319
|
};
|
|
2303
2320
|
};
|
|
2321
|
+
getMyBackofficeAccess: {
|
|
2322
|
+
parameters: {
|
|
2323
|
+
query?: never;
|
|
2324
|
+
header?: never;
|
|
2325
|
+
path?: never;
|
|
2326
|
+
cookie?: never;
|
|
2327
|
+
};
|
|
2328
|
+
requestBody?: never;
|
|
2329
|
+
responses: {
|
|
2330
|
+
/** @description OK */
|
|
2331
|
+
200: {
|
|
2332
|
+
headers: {
|
|
2333
|
+
[name: string]: unknown;
|
|
2334
|
+
};
|
|
2335
|
+
content: {
|
|
2336
|
+
"application/json": {
|
|
2337
|
+
available: boolean;
|
|
2338
|
+
};
|
|
2339
|
+
};
|
|
2340
|
+
};
|
|
2341
|
+
/**
|
|
2342
|
+
* @description - `CustomerSessionRequired`: The operation needs a customer's session
|
|
2343
|
+
* - `NotAuthenticated`: The credentials are missing, invalid or expired, or do not fit this surface
|
|
2344
|
+
* - `SessionExpired`: The session has expired or its client's session policy ended it; sign in again
|
|
2345
|
+
*/
|
|
2346
|
+
401: {
|
|
2347
|
+
headers: {
|
|
2348
|
+
[name: string]: unknown;
|
|
2349
|
+
};
|
|
2350
|
+
content: {
|
|
2351
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
2352
|
+
/** @enum {string} */
|
|
2353
|
+
code: "CustomerSessionRequired" | "NotAuthenticated" | "SessionExpired";
|
|
2354
|
+
};
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
/** @description - `NotAuthorized`: The actor is not permitted to perform this operation */
|
|
2358
|
+
403: {
|
|
2359
|
+
headers: {
|
|
2360
|
+
[name: string]: unknown;
|
|
2361
|
+
};
|
|
2362
|
+
content: {
|
|
2363
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
2364
|
+
/** @enum {string} */
|
|
2365
|
+
code: "NotAuthorized";
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2368
|
+
};
|
|
2369
|
+
/** @description - `RateLimited`: A rate limit refused the request: the load balancer's per IP, or the engine's per application client; retry after `Retry-After` seconds */
|
|
2370
|
+
429: {
|
|
2371
|
+
headers: {
|
|
2372
|
+
/** @description Seconds to wait before sending the request again */
|
|
2373
|
+
"Retry-After"?: number;
|
|
2374
|
+
[name: string]: unknown;
|
|
2375
|
+
};
|
|
2376
|
+
content: {
|
|
2377
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
2378
|
+
/** @enum {string} */
|
|
2379
|
+
code: "RateLimited";
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2383
|
+
/** @description - `InternalError`: The engine failed unexpectedly */
|
|
2384
|
+
500: {
|
|
2385
|
+
headers: {
|
|
2386
|
+
[name: string]: unknown;
|
|
2387
|
+
};
|
|
2388
|
+
content: {
|
|
2389
|
+
"application/json": components["schemas"]["ErrorResponse"] & {
|
|
2390
|
+
/** @enum {string} */
|
|
2391
|
+
code: "InternalError";
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
};
|
|
2304
2397
|
listOwnBookings: {
|
|
2305
2398
|
parameters: {
|
|
2306
2399
|
query?: {
|