@swipegames/public-api 1.2.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/README.md +35 -0
- package/dist/api/v1.0/core/api.gen.d.ts +321 -0
- package/dist/api/v1.0/core/api.gen.d.ts.map +1 -0
- package/dist/api/v1.0/core/api.gen.js +79 -0
- package/dist/api/v1.0/core/api.gen.js.map +1 -0
- package/dist/api/v1.0/core/api.gen.zod.d.ts +149 -0
- package/dist/api/v1.0/core/api.gen.zod.d.ts.map +1 -0
- package/dist/api/v1.0/core/api.gen.zod.js +118 -0
- package/dist/api/v1.0/core/api.gen.zod.js.map +1 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.d.ts +410 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.d.ts.map +1 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.js +99 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.js.map +1 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.zod.d.ts +114 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.zod.d.ts.map +1 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.zod.js +108 -0
- package/dist/api/v1.0/swipegames-integration/api.gen.zod.js.map +1 -0
- package/dist/packages/types/index.d.ts +5 -0
- package/dist/packages/types/index.d.ts.map +1 -0
- package/dist/packages/types/index.js +7 -0
- package/dist/packages/types/index.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Swipe Games Integration Adapter Public API
|
|
5
|
+
* This is the Integration Adapter API for Swipe Games Public API.
|
|
6
|
+
It is used to make reverse calls to integrations working through Public API.
|
|
7
|
+
Please implement this API on your side to support Swipe Games Public API.
|
|
8
|
+
|
|
9
|
+
* OpenAPI spec version: 1.2.5
|
|
10
|
+
*/
|
|
11
|
+
import * as zod from 'zod';
|
|
12
|
+
/**
|
|
13
|
+
* This endpoint is used to get the player's balance.
|
|
14
|
+
Please make sure that this endpoint responds as quickly as possible,
|
|
15
|
+
so player's experience is not affected.
|
|
16
|
+
|
|
17
|
+
* @summary Get balance
|
|
18
|
+
*/
|
|
19
|
+
export declare const GetBalanceQueryParams: zod.ZodObject<{
|
|
20
|
+
sessionID: zod.ZodString;
|
|
21
|
+
}, zod.z.core.$strip>;
|
|
22
|
+
export declare const GetBalanceHeader: zod.ZodObject<{
|
|
23
|
+
"X-REQUEST-SIGN": zod.ZodString;
|
|
24
|
+
}, zod.z.core.$strip>;
|
|
25
|
+
export declare const getBalanceResponseBalanceRegExp: RegExp;
|
|
26
|
+
export declare const GetBalanceResponse: zod.ZodObject<{
|
|
27
|
+
balance: zod.ZodString;
|
|
28
|
+
}, zod.z.core.$strip>;
|
|
29
|
+
/**
|
|
30
|
+
* This endpoint is used to place a bet in the game.
|
|
31
|
+
Every time player places a bet, we send a request to this endpoint and wait for the answer (**sync request**).
|
|
32
|
+
|
|
33
|
+
Please make sure that this endpoint responds as quickly as possible,
|
|
34
|
+
so player's experience is not affected.
|
|
35
|
+
|
|
36
|
+
In case we receive not 200 (OK) response or 5 seconds timeout we will send following `refund request.
|
|
37
|
+
|
|
38
|
+
* @summary Bet
|
|
39
|
+
*/
|
|
40
|
+
export declare const PostBetHeader: zod.ZodObject<{
|
|
41
|
+
"X-REQUEST-SIGN": zod.ZodString;
|
|
42
|
+
}, zod.z.core.$strip>;
|
|
43
|
+
export declare const postBetBodyAmountRegExp: RegExp;
|
|
44
|
+
export declare const PostBetBody: zod.ZodObject<{
|
|
45
|
+
type: zod.ZodEnum<{
|
|
46
|
+
regular: "regular";
|
|
47
|
+
free: "free";
|
|
48
|
+
}>;
|
|
49
|
+
sessionID: zod.ZodString;
|
|
50
|
+
amount: zod.ZodString;
|
|
51
|
+
txID: zod.ZodString;
|
|
52
|
+
roundID: zod.ZodString;
|
|
53
|
+
frID: zod.ZodOptional<zod.ZodString>;
|
|
54
|
+
}, zod.z.core.$strip>;
|
|
55
|
+
export declare const postBetResponseBalanceRegExp: RegExp;
|
|
56
|
+
export declare const PostBetResponse: zod.ZodObject<{
|
|
57
|
+
balance: zod.ZodString;
|
|
58
|
+
txID: zod.ZodString;
|
|
59
|
+
}, zod.z.core.$strip>;
|
|
60
|
+
/**
|
|
61
|
+
* This endpoint is used to place a win in the game.
|
|
62
|
+
|
|
63
|
+
Every time player wins, or round ended without a win (in this case amount is 0),
|
|
64
|
+
we send a request to this endpoint and wait for the answer. Wait time is 5 seconds.
|
|
65
|
+
|
|
66
|
+
After timeout or any error this request will be retrying in the background until we receive 200(OK) response.
|
|
67
|
+
|
|
68
|
+
* @summary Win
|
|
69
|
+
*/
|
|
70
|
+
export declare const PostWinHeader: zod.ZodObject<{
|
|
71
|
+
"X-REQUEST-SIGN": zod.ZodString;
|
|
72
|
+
}, zod.z.core.$strip>;
|
|
73
|
+
export declare const postWinBodyAmountRegExp: RegExp;
|
|
74
|
+
export declare const PostWinBody: zod.ZodObject<{
|
|
75
|
+
type: zod.ZodEnum<{
|
|
76
|
+
regular: "regular";
|
|
77
|
+
free: "free";
|
|
78
|
+
}>;
|
|
79
|
+
sessionID: zod.ZodString;
|
|
80
|
+
amount: zod.ZodString;
|
|
81
|
+
txID: zod.ZodString;
|
|
82
|
+
roundID: zod.ZodString;
|
|
83
|
+
frID: zod.ZodOptional<zod.ZodString>;
|
|
84
|
+
}, zod.z.core.$strip>;
|
|
85
|
+
export declare const postWinResponseBalanceRegExp: RegExp;
|
|
86
|
+
export declare const PostWinResponse: zod.ZodObject<{
|
|
87
|
+
balance: zod.ZodString;
|
|
88
|
+
txID: zod.ZodString;
|
|
89
|
+
}, zod.z.core.$strip>;
|
|
90
|
+
/**
|
|
91
|
+
* This endpoint is used to place a refund for bet or win action.
|
|
92
|
+
We send refund to the client side in case of Bet 500 error or timeout, also
|
|
93
|
+
in case when player cancels the game.
|
|
94
|
+
|
|
95
|
+
After timeout or any error this request will be retrying until we receive 200(OK) response.
|
|
96
|
+
|
|
97
|
+
* @summary Refund
|
|
98
|
+
*/
|
|
99
|
+
export declare const PostRefundHeader: zod.ZodObject<{
|
|
100
|
+
"X-REQUEST-SIGN": zod.ZodString;
|
|
101
|
+
}, zod.z.core.$strip>;
|
|
102
|
+
export declare const postRefundBodyAmountRegExp: RegExp;
|
|
103
|
+
export declare const PostRefundBody: zod.ZodObject<{
|
|
104
|
+
sessionID: zod.ZodString;
|
|
105
|
+
txID: zod.ZodString;
|
|
106
|
+
origTxID: zod.ZodString;
|
|
107
|
+
amount: zod.ZodString;
|
|
108
|
+
}, zod.z.core.$strip>;
|
|
109
|
+
export declare const postRefundResponseBalanceRegExp: RegExp;
|
|
110
|
+
export declare const PostRefundResponse: zod.ZodObject<{
|
|
111
|
+
balance: zod.ZodString;
|
|
112
|
+
txID: zod.ZodString;
|
|
113
|
+
}, zod.z.core.$strip>;
|
|
114
|
+
//# sourceMappingURL=api.gen.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.gen.zod.d.ts","sourceRoot":"","sources":["../../../../../../api/v1.0/swipegames-integration/api.gen.zod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB;;qBAEhC,CAAA;AAEF,eAAO,MAAM,gBAAgB;;qBAE3B,CAAA;AAEF,eAAO,MAAM,+BAA+B,QAA2C,CAAC;AAGxF,eAAO,MAAM,kBAAkB;;qBAE7B,CAAA;AAGF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa;;qBAExB,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAAyC,CAAC;AAG9E,eAAO,MAAM,WAAW;;;;;;;;;;qBAOtB,CAAA;AAEF,eAAO,MAAM,4BAA4B,QAA2C,CAAC;AAGrF,eAAO,MAAM,eAAe;;;qBAG1B,CAAA;AAGF;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa;;qBAExB,CAAA;AAEF,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAGhF,eAAO,MAAM,WAAW;;;;;;;;;;qBAOtB,CAAA;AAEF,eAAO,MAAM,4BAA4B,QAA2C,CAAC;AAGrF,eAAO,MAAM,eAAe;;;qBAG1B,CAAA;AAGF;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB;;qBAE3B,CAAA;AAEF,eAAO,MAAM,0BAA0B,QAA2C,CAAC;AAGnF,eAAO,MAAM,cAAc;;;;;qBAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B,QAA2C,CAAC;AAGxF,eAAO,MAAM,kBAAkB;;;qBAG7B,CAAA"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.2 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Swipe Games Integration Adapter Public API
|
|
5
|
+
* This is the Integration Adapter API for Swipe Games Public API.
|
|
6
|
+
It is used to make reverse calls to integrations working through Public API.
|
|
7
|
+
Please implement this API on your side to support Swipe Games Public API.
|
|
8
|
+
|
|
9
|
+
* OpenAPI spec version: 1.2.5
|
|
10
|
+
*/
|
|
11
|
+
import * as zod from 'zod';
|
|
12
|
+
/**
|
|
13
|
+
* This endpoint is used to get the player's balance.
|
|
14
|
+
Please make sure that this endpoint responds as quickly as possible,
|
|
15
|
+
so player's experience is not affected.
|
|
16
|
+
|
|
17
|
+
* @summary Get balance
|
|
18
|
+
*/
|
|
19
|
+
export const GetBalanceQueryParams = zod.object({
|
|
20
|
+
"sessionID": zod.string().describe('Session ID (external). Provided by client via `Create New Game` call.\nThis is your Session ID. We use it in all reverse calls to you.\n')
|
|
21
|
+
});
|
|
22
|
+
export const GetBalanceHeader = zod.object({
|
|
23
|
+
"X-REQUEST-SIGN": zod.string().describe('Request signature (see Authentication section for more details)')
|
|
24
|
+
});
|
|
25
|
+
export const getBalanceResponseBalanceRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
26
|
+
export const GetBalanceResponse = zod.object({
|
|
27
|
+
"balance": zod.string().regex(getBalanceResponseBalanceRegExp).describe('The player\'s balance in selected currency \*\*main\*\* units (\*\*not cents\*\*).\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\n')
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* This endpoint is used to place a bet in the game.
|
|
31
|
+
Every time player places a bet, we send a request to this endpoint and wait for the answer (**sync request**).
|
|
32
|
+
|
|
33
|
+
Please make sure that this endpoint responds as quickly as possible,
|
|
34
|
+
so player's experience is not affected.
|
|
35
|
+
|
|
36
|
+
In case we receive not 200 (OK) response or 5 seconds timeout we will send following `refund request.
|
|
37
|
+
|
|
38
|
+
* @summary Bet
|
|
39
|
+
*/
|
|
40
|
+
export const PostBetHeader = zod.object({
|
|
41
|
+
"X-REQUEST-SIGN": zod.string().describe('Request signature (see Authentication section for more details)')
|
|
42
|
+
});
|
|
43
|
+
export const postBetBodyAmountRegExp = new RegExp('^([1-9]\\d\*)(\\.\\d+)?$');
|
|
44
|
+
export const PostBetBody = zod.object({
|
|
45
|
+
"type": zod.enum(['regular', 'free']).describe('The type of the bet.\n- `regular` type means regular bet,\n- `free` type means free bet (see Free Rounds section).\n'),
|
|
46
|
+
"sessionID": zod.string().describe('The Game Session\'s ID (external). Provided by client via `Create New Game` call.\n'),
|
|
47
|
+
"amount": zod.string().regex(postBetBodyAmountRegExp).describe('The amount of the bet in currency \*\*main\*\* units (\*\*not cents\*\*).\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\n'),
|
|
48
|
+
"txID": zod.string().uuid().describe('Unique ID for the bet (internal) on Swipe Games\' side.\nCould be used as idempotency key.\n'),
|
|
49
|
+
"roundID": zod.string().uuid().describe('Non unique ID for the round (internal) on Swipe Games\' side.\nCould be the same for different games.\n'),
|
|
50
|
+
"frID": zod.string().optional().describe('Free Rounds ID (external).\nThis field is provided only for free rounds bets (where `type` is `free`).\n')
|
|
51
|
+
});
|
|
52
|
+
export const postBetResponseBalanceRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
53
|
+
export const PostBetResponse = zod.object({
|
|
54
|
+
"balance": zod.string().regex(postBetResponseBalanceRegExp).describe('The player\'s balance in selected currency \*\*main\*\* units (note: not cents) after the bet is applied.\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\n'),
|
|
55
|
+
"txID": zod.string().describe('Unique ID for the bet on your side. This is required for further tracking\/debugging purposes.')
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* This endpoint is used to place a win in the game.
|
|
59
|
+
|
|
60
|
+
Every time player wins, or round ended without a win (in this case amount is 0),
|
|
61
|
+
we send a request to this endpoint and wait for the answer. Wait time is 5 seconds.
|
|
62
|
+
|
|
63
|
+
After timeout or any error this request will be retrying in the background until we receive 200(OK) response.
|
|
64
|
+
|
|
65
|
+
* @summary Win
|
|
66
|
+
*/
|
|
67
|
+
export const PostWinHeader = zod.object({
|
|
68
|
+
"X-REQUEST-SIGN": zod.string().describe('Request signature (see Authentication section for more details)')
|
|
69
|
+
});
|
|
70
|
+
export const postWinBodyAmountRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
71
|
+
export const PostWinBody = zod.object({
|
|
72
|
+
"type": zod.enum(['regular', 'free']).describe('The type of the win.\n- `regular` type means regular bet,\n- `free` type means free bet (see Free Rounds section).\n'),
|
|
73
|
+
"sessionID": zod.string().describe('The Game Session\'s ID (external). Provided by client via `Create New Game` call.\n'),
|
|
74
|
+
"amount": zod.string().regex(postWinBodyAmountRegExp).describe('The amount of the bet in currency \*\*main\*\* units (note: not cents). Currency selected by the client during the\n`Create New Game` call. We support 2 decimal places for all fiat currencies.\n'),
|
|
75
|
+
"txID": zod.string().uuid().describe('Unique ID for the win (internal) on Swipe Games\' side.\nCould be used as idempotency key.\n'),
|
|
76
|
+
"roundID": zod.string().uuid().describe('Non unique ID for the round (internal) on Swipe Games\' side.\nCould be the same for different games.\n'),
|
|
77
|
+
"frID": zod.string().optional().describe('Free Rounds ID (external).\nThis field is provided only for free rounds wins (where `type` is `free`),\nduring bonus balance withdrawal process (type is `regular`).\n')
|
|
78
|
+
});
|
|
79
|
+
export const postWinResponseBalanceRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
80
|
+
export const PostWinResponse = zod.object({
|
|
81
|
+
"balance": zod.string().regex(postWinResponseBalanceRegExp).describe('The player\'s balance in selected currency \*\*main\*\* units (note: not cents) after the win is applied.\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\n'),
|
|
82
|
+
"txID": zod.string().describe('Unique ID for the win on your side. This is required for further tracking\/debugging purposes.')
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* This endpoint is used to place a refund for bet or win action.
|
|
86
|
+
We send refund to the client side in case of Bet 500 error or timeout, also
|
|
87
|
+
in case when player cancels the game.
|
|
88
|
+
|
|
89
|
+
After timeout or any error this request will be retrying until we receive 200(OK) response.
|
|
90
|
+
|
|
91
|
+
* @summary Refund
|
|
92
|
+
*/
|
|
93
|
+
export const PostRefundHeader = zod.object({
|
|
94
|
+
"X-REQUEST-SIGN": zod.string().describe('Request signature (see Authentication section for more details)')
|
|
95
|
+
});
|
|
96
|
+
export const postRefundBodyAmountRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
97
|
+
export const PostRefundBody = zod.object({
|
|
98
|
+
"sessionID": zod.string().describe('The Game Session\'s ID (external). Provided by client via `Create New Game` call.\n'),
|
|
99
|
+
"txID": zod.string().uuid().describe('Unique ID for the refund (internal) on Swipe Games\' side.\nCould be used as idempotency key.\n'),
|
|
100
|
+
"origTxID": zod.string().uuid().describe('Original transaction ID (internal) on Swipe Games\' side.\nThis is the ID of the transaction that should be refunded.\nIn some cases this original transaction ID might be not recorded on your side (timeout, server side error, etc).\n'),
|
|
101
|
+
"amount": zod.string().regex(postRefundBodyAmountRegExp).describe('The amount of the refund in currency \*\*main\*\* units (note: not cents).\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\nRefunds are always done for the whole bet amount.\n')
|
|
102
|
+
});
|
|
103
|
+
export const postRefundResponseBalanceRegExp = new RegExp('^(0|[1-9]\\d\*)(\\.\\d+)?$');
|
|
104
|
+
export const PostRefundResponse = zod.object({
|
|
105
|
+
"balance": zod.string().regex(postRefundResponseBalanceRegExp).describe('The user\'s balance in selected currency \*\*main\*\* units (note: not cents) after the refund is applied.\nCurrency selected by the client during the `Create New Game` call.\nWe support 2 decimal places for all fiat currencies.\n'),
|
|
106
|
+
"txID": zod.string().describe('Unique ID for the refund on your side. This is required for further tracking\/debugging purposes.')
|
|
107
|
+
});
|
|
108
|
+
//# sourceMappingURL=api.gen.zod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.gen.zod.js","sourceRoot":"","sources":["../../../../../../api/v1.0/swipegames-integration/api.gen.zod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0IAA0I,CAAC;CAC/K,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC,MAAM,CAAC;IACzC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iEAAiE,CAAC;CAC3G,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAGxF,MAAM,CAAC,MAAM,kBAAkB,GAAG,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AmG,CAAC;CACnI,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as CoreSchemas from "../../api/v1.0/core/api.gen.zod.js";
|
|
2
|
+
export * as IntegrationSchemas from "../../api/v1.0/swipegames-integration/api.gen.zod.js";
|
|
3
|
+
export * as CoreTypes from "../../api/v1.0/core/api.gen.js";
|
|
4
|
+
export * as IntegrationTypes from "../../api/v1.0/swipegames-integration/api.gen.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,kBAAkB,MAAM,sDAAsD,CAAC;AAG3F,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,gBAAgB,MAAM,kDAAkD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Zod schemas
|
|
2
|
+
export * as CoreSchemas from "../../api/v1.0/core/api.gen.zod.js";
|
|
3
|
+
export * as IntegrationSchemas from "../../api/v1.0/swipegames-integration/api.gen.zod.js";
|
|
4
|
+
// TypeScript types
|
|
5
|
+
export * as CoreTypes from "../../api/v1.0/core/api.gen.js";
|
|
6
|
+
export * as IntegrationTypes from "../../api/v1.0/swipegames-integration/api.gen.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc;AACd,OAAO,KAAK,WAAW,MAAM,oCAAoC,CAAC;AAClE,OAAO,KAAK,kBAAkB,MAAM,sDAAsD,CAAC;AAE3F,mBAAmB;AACnB,OAAO,KAAK,SAAS,MAAM,gCAAgC,CAAC;AAC5D,OAAO,KAAK,gBAAgB,MAAM,kDAAkD,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@swipegames/public-api",
|
|
3
|
+
"version": "1.2.5",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/packages/types/index.js",
|
|
6
|
+
"types": "./dist/packages/types/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/packages/types/index.d.ts",
|
|
10
|
+
"import": "./dist/packages/types/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"license": "UNLICENSED",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"registry": "https://registry.npmjs.org",
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"zod": "^3.23.0"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"typescript": "^5.3.0"
|
|
30
|
+
}
|
|
31
|
+
}
|