@gigapay-dev/contracts 1.8.3 → 1.8.5
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/build/commands/api-response.d.ts +18 -0
- package/build/commands/auth/confirm.d.ts +11 -0
- package/build/commands/auth/endpoints.d.ts +114 -0
- package/build/commands/auth/index.d.ts +5 -0
- package/build/commands/auth/login.d.ts +20 -0
- package/build/commands/auth/profile.d.ts +18 -0
- package/build/commands/auth/register.d.ts +12 -0
- package/build/commands/auth/reset.d.ts +12 -0
- package/build/commands/consts.d.ts +1 -0
- package/build/commands/index.d.ts +13 -0
- package/build/commands/index.js +1 -0
- package/build/commands/orders/create.d.ts +95 -0
- package/build/commands/orders/endpoints.d.ts +726 -0
- package/build/commands/orders/enums.d.ts +7 -0
- package/build/commands/orders/index.d.ts +6 -0
- package/build/commands/orders/query.d.ts +103 -0
- package/build/commands/orders/read.d.ts +230 -0
- package/build/commands/orders/update.d.ts +23 -0
- package/build/commands/pagination.d.ts +12 -0
- package/build/commands/payment-methods/create.d.ts +45 -0
- package/build/commands/payment-methods/endpoints.d.ts +536 -0
- package/build/commands/payment-methods/index.d.ts +4 -0
- package/build/commands/payment-methods/read.d.ts +71 -0
- package/build/commands/payment-methods/update.d.ts +45 -0
- package/build/commands/products/create.d.ts +229 -0
- package/build/commands/products/create.js +122 -0
- package/build/commands/products/endpoints.d.ts +1881 -0
- package/build/commands/products/endpoints.js +99 -0
- package/build/commands/products/enums.d.ts +19 -0
- package/build/commands/products/enums.js +27 -0
- package/build/commands/products/index.d.ts +6 -0
- package/build/commands/{status → products}/index.js +4 -0
- package/build/commands/products/query.d.ts +79 -0
- package/build/commands/products/query.js +55 -0
- package/build/commands/products/read.d.ts +833 -0
- package/build/commands/products/read.js +176 -0
- package/build/commands/products/update.d.ts +78 -0
- package/build/commands/products/update.js +10 -0
- package/build/commands/promocode-activations/create.d.ts +18 -0
- package/build/commands/promocode-activations/index.d.ts +3 -0
- package/build/commands/promocode-activations/read.d.ts +21 -0
- package/build/commands/promocode-activations/update.d.ts +18 -0
- package/build/commands/promocodes/create.d.ts +39 -0
- package/build/commands/promocodes/endpoints.d.ts +353 -0
- package/build/commands/promocodes/enums.d.ts +5 -0
- package/build/commands/promocodes/index.d.ts +5 -0
- package/build/commands/promocodes/read.d.ts +45 -0
- package/build/commands/promocodes/update.d.ts +33 -0
- package/build/commands/refresh-sessions/create.d.ts +24 -0
- package/build/commands/refresh-sessions/enums.d.ts +3 -0
- package/build/commands/refresh-sessions/index.d.ts +4 -0
- package/build/commands/refresh-sessions/read.d.ts +27 -0
- package/build/commands/refresh-sessions/update.d.ts +24 -0
- package/build/commands/settings/endpoints.d.ts +108 -0
- package/build/commands/settings/index.d.ts +3 -0
- package/build/commands/settings/read.d.ts +18 -0
- package/build/commands/settings/update.d.ts +18 -0
- package/build/commands/stats/endpoints.d.ts +67 -0
- package/build/commands/stats/index.d.ts +3 -0
- package/build/commands/stats/query.d.ts +31 -0
- package/build/commands/stats/read.d.ts +30 -0
- package/build/commands/users/create.d.ts +42 -0
- package/build/commands/users/endpoints.d.ts +403 -0
- package/build/commands/users/enums.d.ts +6 -0
- package/build/commands/users/index.d.ts +6 -0
- package/build/commands/users/query.d.ts +52 -0
- package/build/commands/users/read.d.ts +60 -0
- package/build/commands/users/update.d.ts +42 -0
- package/build/index.d.ts +1 -0
- package/build/types.d.ts +8 -0
- package/commands/index.ts +2 -1
- package/commands/products/create.ts +134 -0
- package/commands/products/endpoints.ts +108 -0
- package/commands/products/enums.ts +33 -0
- package/commands/products/index.ts +6 -0
- package/commands/products/query.ts +52 -0
- package/commands/products/read.ts +205 -0
- package/commands/products/update.ts +11 -0
- package/package.json +3 -2
- package/tsconfig.json +1 -1
- package/build/commands/status/endpoints.js +0 -33
- package/build/commands/status/read.js +0 -12
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gigapay-dev/contracts",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.5",
|
|
4
4
|
"main": "./build/index.js",
|
|
5
|
-
"
|
|
5
|
+
"types": "./build/index.d.ts",
|
|
6
|
+
"scripts": {
|
|
6
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
7
8
|
"prepublish": "rm -r ./build && tsc"
|
|
8
9
|
},
|
package/tsconfig.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
52
52
|
|
|
53
53
|
/* Emit */
|
|
54
|
-
|
|
54
|
+
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
55
55
|
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
56
56
|
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
57
57
|
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StatusEndpoints = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const read_1 = require("./read");
|
|
6
|
-
exports.StatusEndpoints = {
|
|
7
|
-
list: {
|
|
8
|
-
method: "GET",
|
|
9
|
-
path: "/status",
|
|
10
|
-
request: zod_1.z.object({}),
|
|
11
|
-
response: read_1.StatusReadResponseSchema,
|
|
12
|
-
},
|
|
13
|
-
get: {
|
|
14
|
-
method: "GET",
|
|
15
|
-
path: "/status/:key",
|
|
16
|
-
request: zod_1.z.object({
|
|
17
|
-
key: zod_1.z.string(),
|
|
18
|
-
}),
|
|
19
|
-
response: zod_1.z.object({
|
|
20
|
-
key: zod_1.z.string(),
|
|
21
|
-
value: zod_1.z.boolean(),
|
|
22
|
-
}),
|
|
23
|
-
},
|
|
24
|
-
set: {
|
|
25
|
-
method: "POST",
|
|
26
|
-
path: "/status/:key",
|
|
27
|
-
request: zod_1.z.object({
|
|
28
|
-
key: zod_1.z.string(),
|
|
29
|
-
value: zod_1.z.boolean(),
|
|
30
|
-
}),
|
|
31
|
-
response: read_1.StatusReadResponseSchema,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.StatusReadResponseSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
exports.StatusReadResponseSchema = zod_1.default.object({
|
|
9
|
-
service: zod_1.default.boolean(),
|
|
10
|
-
works: zod_1.default.boolean(),
|
|
11
|
-
payments: zod_1.default.boolean(),
|
|
12
|
-
});
|