@escapenavigator/services 1.9.41 → 1.9.43
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/api/slot-templates-api/get-all-actual.d.ts +6 -0
- package/dist/api/slot-templates-api/get-all-actual.js +8 -0
- package/dist/api/slot-templates-api/get-history.d.ts +7 -0
- package/dist/api/slot-templates-api/get-history.js +8 -0
- package/dist/api/slot-templates-api/get-one.d.ts +4 -5
- package/dist/api/slot-templates-api/get-one.js +2 -2
- package/dist/api/slot-templates-api/index.d.ts +4 -2
- package/dist/api/slot-templates-api/index.js +4 -2
- package/package.json +4 -4
- package/dist/api/slot-templates-api/get-all.d.ts +0 -6
- package/dist/api/slot-templates-api/get-all.js +0 -8
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SlotTemplateRO } from '@escapenavigator/types/dist/slot-template/slot-template.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
declare type ParamsData = undefined;
|
|
4
|
+
declare type ResponseData = SlotTemplateRO[];
|
|
5
|
+
export declare const getAllActual: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SlotTemplateHistoryRO } from '@escapenavigator/types/dist/slot-template/slot-template-history.ro';
|
|
2
|
+
import { ApiMethodDeclaration } from '..';
|
|
3
|
+
/** ID квеста */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = SlotTemplateHistoryRO[];
|
|
6
|
+
export declare const getHistory: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getHistory = void 0;
|
|
4
|
+
var getHistory = function (questroomId) { return ({
|
|
5
|
+
url: "/slot-templates/history/".concat(questroomId),
|
|
6
|
+
method: 'GET',
|
|
7
|
+
}); };
|
|
8
|
+
exports.getHistory = getHistory;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SlotTemplateResponseObject } from '@escapenavigator/types/dist/slot-template/slot-template.ro';
|
|
1
|
+
import { SlotTemplateRO } from '@escapenavigator/types/dist/slot-template/slot-template.ro';
|
|
3
2
|
import { ApiMethodDeclaration } from '..';
|
|
4
|
-
/** ID
|
|
5
|
-
declare type ParamsData =
|
|
6
|
-
declare type ResponseData =
|
|
3
|
+
/** ID темлейна */
|
|
4
|
+
declare type ParamsData = number;
|
|
5
|
+
declare type ResponseData = SlotTemplateRO;
|
|
7
6
|
export declare const getOne: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
8
7
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOne = void 0;
|
|
4
|
-
var getOne = function (
|
|
5
|
-
url: "/slot-templates/".concat(
|
|
4
|
+
var getOne = function (templateId) { return ({
|
|
5
|
+
url: "/slot-templates/".concat(templateId),
|
|
6
6
|
method: 'GET',
|
|
7
7
|
}); };
|
|
8
8
|
exports.getOne = getOne;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { copy } from './copy';
|
|
2
|
-
import {
|
|
2
|
+
import { getAllActual } from './get-all-actual';
|
|
3
|
+
import { getHistory } from './get-history';
|
|
3
4
|
import { getOne } from './get-one';
|
|
4
5
|
import { update } from './update';
|
|
5
6
|
declare type ApiDeclaration = {
|
|
6
|
-
getAll: typeof getAll;
|
|
7
7
|
getOne: typeof getOne;
|
|
8
|
+
getHistory: typeof getHistory;
|
|
8
9
|
update: typeof update;
|
|
9
10
|
copy: typeof copy;
|
|
11
|
+
getAllActual: typeof getAllActual;
|
|
10
12
|
};
|
|
11
13
|
export declare const slotTemplatesApiDeclaration: ApiDeclaration;
|
|
12
14
|
export {};
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.slotTemplatesApiDeclaration = void 0;
|
|
4
4
|
var copy_1 = require("./copy");
|
|
5
|
-
var
|
|
5
|
+
var get_all_actual_1 = require("./get-all-actual");
|
|
6
|
+
var get_history_1 = require("./get-history");
|
|
6
7
|
var get_one_1 = require("./get-one");
|
|
7
8
|
var update_1 = require("./update");
|
|
8
9
|
exports.slotTemplatesApiDeclaration = {
|
|
9
|
-
getAll: get_all_1.getAll,
|
|
10
10
|
getOne: get_one_1.getOne,
|
|
11
11
|
copy: copy_1.copy,
|
|
12
|
+
getHistory: get_history_1.getHistory,
|
|
12
13
|
update: update_1.update,
|
|
14
|
+
getAllActual: get_all_actual_1.getAllActual,
|
|
13
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/services",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.43",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"build": "rm -rf dist && tsc --project tsconfig.json"
|
|
14
14
|
},
|
|
15
|
-
"gitHead": "
|
|
15
|
+
"gitHead": "3292197490e3df9bc3410ba0b0e45214b1023a37",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@escapenavigator/types": "^1.9.
|
|
18
|
-
"@escapenavigator/utils": "^1.9.
|
|
17
|
+
"@escapenavigator/types": "^1.9.38",
|
|
18
|
+
"@escapenavigator/utils": "^1.9.40",
|
|
19
19
|
"axios": "^0.21.4",
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.2",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SlotTemplateResponseObject } from '@escapenavigator/types/dist/slot-template/slot-template.ro';
|
|
2
|
-
import { ApiMethodDeclaration } from '..';
|
|
3
|
-
declare type ParamsData = undefined;
|
|
4
|
-
declare type ResponseData = SlotTemplateResponseObject[];
|
|
5
|
-
export declare const getAll: ApiMethodDeclaration<ParamsData, ResponseData>;
|
|
6
|
-
export {};
|