bb-api-platforma 0.1.246 → 0.1.248
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/dist/BetBoosterOfficeApi.d.ts +54 -0
- package/dist/BetBoosterOfficeApi.js +53 -0
- package/dist/Types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1328,4 +1328,58 @@ export declare class BetBoosterOfficeApi {
|
|
|
1328
1328
|
status: number;
|
|
1329
1329
|
statusText: string;
|
|
1330
1330
|
}>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Creates a new cash register (point) by cloning the configuration of an existing one.
|
|
1333
|
+
*
|
|
1334
|
+
* The newly created point inherits settings (currency, limits, permissions, etc.)
|
|
1335
|
+
* from the point identified by `ExamplePointId`. A unique login/password pair and
|
|
1336
|
+
* a brand tag are assigned to the new point.
|
|
1337
|
+
*
|
|
1338
|
+
* @param payload - The parameters required to create a new point.
|
|
1339
|
+
* @param payload.ExamplePointId - The ID of the existing point to use as a template.
|
|
1340
|
+
* @param payload.Login - The login name for the new point's cashier account.
|
|
1341
|
+
* @param payload.Password - The password for the new point's cashier account.
|
|
1342
|
+
* @param payload.Brend - The brand (site) tag to associate with the new point.
|
|
1343
|
+
*
|
|
1344
|
+
* @returns A promise that resolves to an object with `data`, `error`, `status`, and `statusText`.
|
|
1345
|
+
* On success `data` contains the created point info; on failure `error` holds the message.
|
|
1346
|
+
*
|
|
1347
|
+
* @remarks
|
|
1348
|
+
* Endpoint: `POST /api/v1/office/{culture}/CreatePointByExample`
|
|
1349
|
+
*
|
|
1350
|
+
* @example
|
|
1351
|
+
* ```typescript
|
|
1352
|
+
* // Request payload
|
|
1353
|
+
* const payload: ICreatePointByExamplePayload = {
|
|
1354
|
+
* ExamplePointId: 85,
|
|
1355
|
+
* Login: "new_cashier_01",
|
|
1356
|
+
* Password: "Str0ngP@ss!",
|
|
1357
|
+
* Brend: "partner.win"
|
|
1358
|
+
* };
|
|
1359
|
+
*
|
|
1360
|
+
* const result = await officeApi.createPointByExample(payload);
|
|
1361
|
+
*
|
|
1362
|
+
* // Success response
|
|
1363
|
+
* {
|
|
1364
|
+
* data: { /* created point data *\/ },
|
|
1365
|
+
* error: null,
|
|
1366
|
+
* status: 200,
|
|
1367
|
+
* statusText: "OK"
|
|
1368
|
+
* }
|
|
1369
|
+
*
|
|
1370
|
+
* // Error response (e.g. point already exists)
|
|
1371
|
+
* {
|
|
1372
|
+
* data: null,
|
|
1373
|
+
* error: "Point with this login already exists",
|
|
1374
|
+
* status: 200,
|
|
1375
|
+
* statusText: "OK"
|
|
1376
|
+
* }
|
|
1377
|
+
* ```
|
|
1378
|
+
*/
|
|
1379
|
+
createPointByExample(payload: I.ICreatePointByExamplePayload): Promise<{
|
|
1380
|
+
data: any;
|
|
1381
|
+
error: string | null;
|
|
1382
|
+
status: number;
|
|
1383
|
+
statusText: string;
|
|
1384
|
+
}>;
|
|
1331
1385
|
}
|
|
@@ -2357,5 +2357,58 @@ export class BetBoosterOfficeApi {
|
|
|
2357
2357
|
const { data, status, statusText } = await this.request(url).POST(payload).exec();
|
|
2358
2358
|
return this.responseHandlerDataData(data, status, statusText);
|
|
2359
2359
|
}
|
|
2360
|
+
/**
|
|
2361
|
+
* Creates a new cash register (point) by cloning the configuration of an existing one.
|
|
2362
|
+
*
|
|
2363
|
+
* The newly created point inherits settings (currency, limits, permissions, etc.)
|
|
2364
|
+
* from the point identified by `ExamplePointId`. A unique login/password pair and
|
|
2365
|
+
* a brand tag are assigned to the new point.
|
|
2366
|
+
*
|
|
2367
|
+
* @param payload - The parameters required to create a new point.
|
|
2368
|
+
* @param payload.ExamplePointId - The ID of the existing point to use as a template.
|
|
2369
|
+
* @param payload.Login - The login name for the new point's cashier account.
|
|
2370
|
+
* @param payload.Password - The password for the new point's cashier account.
|
|
2371
|
+
* @param payload.Brend - The brand (site) tag to associate with the new point.
|
|
2372
|
+
*
|
|
2373
|
+
* @returns A promise that resolves to an object with `data`, `error`, `status`, and `statusText`.
|
|
2374
|
+
* On success `data` contains the created point info; on failure `error` holds the message.
|
|
2375
|
+
*
|
|
2376
|
+
* @remarks
|
|
2377
|
+
* Endpoint: `POST /api/v1/office/{culture}/CreatePointByExample`
|
|
2378
|
+
*
|
|
2379
|
+
* @example
|
|
2380
|
+
* ```typescript
|
|
2381
|
+
* // Request payload
|
|
2382
|
+
* const payload: ICreatePointByExamplePayload = {
|
|
2383
|
+
* ExamplePointId: 85,
|
|
2384
|
+
* Login: "new_cashier_01",
|
|
2385
|
+
* Password: "Str0ngP@ss!",
|
|
2386
|
+
* Brend: "partner.win"
|
|
2387
|
+
* };
|
|
2388
|
+
*
|
|
2389
|
+
* const result = await officeApi.createPointByExample(payload);
|
|
2390
|
+
*
|
|
2391
|
+
* // Success response
|
|
2392
|
+
* {
|
|
2393
|
+
* data: { /* created point data *\/ },
|
|
2394
|
+
* error: null,
|
|
2395
|
+
* status: 200,
|
|
2396
|
+
* statusText: "OK"
|
|
2397
|
+
* }
|
|
2398
|
+
*
|
|
2399
|
+
* // Error response (e.g. point already exists)
|
|
2400
|
+
* {
|
|
2401
|
+
* data: null,
|
|
2402
|
+
* error: "Point with this login already exists",
|
|
2403
|
+
* status: 200,
|
|
2404
|
+
* statusText: "OK"
|
|
2405
|
+
* }
|
|
2406
|
+
* ```
|
|
2407
|
+
*/
|
|
2408
|
+
async createPointByExample(payload) {
|
|
2409
|
+
const url = this.url(`/CreatePointByExample`, api.OFFICE);
|
|
2410
|
+
const { data, status, statusText } = await this.request(url).POST(payload).exec();
|
|
2411
|
+
return this.responseHandlerData(data, status, statusText);
|
|
2412
|
+
}
|
|
2360
2413
|
}
|
|
2361
2414
|
// @workspace /doc в комментарии приведи полный пример payload из I.IConfirmWithdrawalOrderPayload
|
package/dist/Types.d.ts
CHANGED
|
@@ -1084,6 +1084,12 @@ export interface ISetPasswordOfficePayload {
|
|
|
1084
1084
|
/** Пароль для User ID */
|
|
1085
1085
|
NewUserPassword: string;
|
|
1086
1086
|
}
|
|
1087
|
+
export interface ICreatePointByExamplePayload {
|
|
1088
|
+
ExamplePointId: number;
|
|
1089
|
+
Login: string;
|
|
1090
|
+
Password: string;
|
|
1091
|
+
Brend: string;
|
|
1092
|
+
}
|
|
1087
1093
|
export type TResponseDataFormat = 'StatusResponse' | null;
|
|
1088
1094
|
export interface ILiveResponce {
|
|
1089
1095
|
TimeStamp?: number;
|