@sudobility/types 1.9.39 → 1.9.41
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/index.js +45 -7
- package/dist/index.js.map +1 -1
- package/dist/types/blockchain/common.js +16 -9
- package/dist/types/blockchain/common.js.map +1 -1
- package/dist/types/blockchain/index.js +16 -2
- package/dist/types/blockchain/index.js.map +1 -1
- package/dist/types/blockchain/validation.js +12 -6
- package/dist/types/blockchain/validation.js.map +1 -1
- package/dist/types/business/enums.js +49 -46
- package/dist/types/business/enums.js.map +1 -1
- package/dist/types/business/index.js +31 -2
- package/dist/types/business/index.js.map +1 -1
- package/dist/types/business/wallet-status.js +16 -10
- package/dist/types/business/wallet-status.js.map +1 -1
- package/dist/types/common.js +2 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/config/app-config.js +2 -1
- package/dist/types/config/app-config.js.map +1 -1
- package/dist/types/config/environment.js +5 -2
- package/dist/types/config/environment.js.map +1 -1
- package/dist/types/config/index.js +5 -1
- package/dist/types/config/index.js.map +1 -1
- package/dist/types/entity/entity.js +9 -6
- package/dist/types/entity/entity.js.map +1 -1
- package/dist/types/entity/index.js +20 -4
- package/dist/types/entity/index.js.map +1 -1
- package/dist/types/entity/permissions.js +14 -9
- package/dist/types/entity/permissions.js.map +1 -1
- package/dist/types/entity/requests.js +2 -1
- package/dist/types/entity/requests.js.map +1 -1
- package/dist/types/entity/responses.js +2 -1
- package/dist/types/entity/responses.js.map +1 -1
- package/dist/types/index.js +23 -7
- package/dist/types/index.js.map +1 -1
- package/dist/types/infrastructure/analytics.js +7 -3
- package/dist/types/infrastructure/analytics.js.map +1 -1
- package/dist/types/infrastructure/api.js +9 -5
- package/dist/types/infrastructure/api.js.map +1 -1
- package/dist/types/infrastructure/index.js +14 -4
- package/dist/types/infrastructure/index.js.map +1 -1
- package/dist/types/infrastructure/navigation.js +2 -1
- package/dist/types/infrastructure/network.js +4 -1
- package/dist/types/infrastructure/network.js.map +1 -1
- package/dist/types/infrastructure/wallet.js +5 -2
- package/dist/types/infrastructure/wallet.js.map +1 -1
- package/dist/types/subscription/index.js +17 -1
- package/dist/types/subscription/index.js.map +1 -1
- package/dist/types/subscription/rate-limits.js +5 -2
- package/dist/types/subscription/rate-limits.js.map +1 -1
- package/dist/utils/async-helpers.js +16 -7
- package/dist/utils/async-helpers.js.map +1 -1
- package/dist/utils/auth/auth.js +24 -14
- package/dist/utils/auth/auth.js.map +1 -1
- package/dist/utils/auth/index.js +12 -1
- package/dist/utils/auth/index.js.map +1 -1
- package/dist/utils/blockchain/address.js +31 -20
- package/dist/utils/blockchain/address.js.map +1 -1
- package/dist/utils/blockchain/event-helpers.js +20 -9
- package/dist/utils/blockchain/event-helpers.js.map +1 -1
- package/dist/utils/blockchain/index.js +26 -3
- package/dist/utils/blockchain/index.js.map +1 -1
- package/dist/utils/constants/application.js +20 -2
- package/dist/utils/constants/application.js.map +1 -1
- package/dist/utils/constants/index.js +23 -2
- package/dist/utils/constants/index.js.map +1 -1
- package/dist/utils/constants/status-values.js +4 -1
- package/dist/utils/constants/status-values.js.map +1 -1
- package/dist/utils/formatting/currency.js +11 -6
- package/dist/utils/formatting/currency.js.map +1 -1
- package/dist/utils/formatting/date.js +16 -7
- package/dist/utils/formatting/date.js.map +1 -1
- package/dist/utils/formatting/index.js +33 -3
- package/dist/utils/formatting/index.js.map +1 -1
- package/dist/utils/formatting/string.js +34 -16
- package/dist/utils/formatting/string.js.map +1 -1
- package/dist/utils/index.js +24 -8
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/logging/index.js +11 -1
- package/dist/utils/logging/index.js.map +1 -1
- package/dist/utils/logging/logger.js +10 -2
- package/dist/utils/logging/logger.js.map +1 -1
- package/dist/utils/url/index.js +8 -1
- package/dist/utils/url/index.js.map +1 -1
- package/dist/utils/url/url-params.js +6 -1
- package/dist/utils/url/url-params.js.map +1 -1
- package/dist/utils/validation/index.js +24 -2
- package/dist/utils/validation/index.js.map +1 -1
- package/dist/utils/validation/type-validation.js +48 -27
- package/dist/utils/validation/type-validation.js.map +1 -1
- package/dist/utils/validation/web3-username-validator.js +10 -6
- package/dist/utils/validation/web3-username-validator.js.map +1 -1
- package/package.json +8 -8
|
@@ -1,32 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Wallet status management types
|
|
3
4
|
* Defines the structure for tracking wallet connection and verification state
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.getWalletConnectionState = exports.isWalletVerified = exports.isWalletConnected = void 0;
|
|
8
|
+
const enums_1 = require("./enums");
|
|
6
9
|
/**
|
|
7
10
|
* Type guard to check if wallet status is defined
|
|
8
11
|
*/
|
|
9
|
-
|
|
12
|
+
const isWalletConnected = (status) => {
|
|
10
13
|
return (status !== undefined && status !== null && Boolean(status.walletAddress));
|
|
11
14
|
};
|
|
15
|
+
exports.isWalletConnected = isWalletConnected;
|
|
12
16
|
/**
|
|
13
17
|
* Type guard to check if wallet is verified (has message and signature)
|
|
14
18
|
*/
|
|
15
|
-
|
|
16
|
-
return (isWalletConnected(status) &&
|
|
19
|
+
const isWalletVerified = (status) => {
|
|
20
|
+
return ((0, exports.isWalletConnected)(status) &&
|
|
17
21
|
Boolean(status.message) &&
|
|
18
22
|
Boolean(status.signature));
|
|
19
23
|
};
|
|
24
|
+
exports.isWalletVerified = isWalletVerified;
|
|
20
25
|
/**
|
|
21
26
|
* Get current wallet connection state
|
|
22
27
|
*/
|
|
23
|
-
|
|
24
|
-
if (!isWalletConnected(status)) {
|
|
25
|
-
return ConnectionState.DISCONNECTED;
|
|
28
|
+
const getWalletConnectionState = (status) => {
|
|
29
|
+
if (!(0, exports.isWalletConnected)(status)) {
|
|
30
|
+
return enums_1.ConnectionState.DISCONNECTED;
|
|
26
31
|
}
|
|
27
|
-
if (isWalletVerified(status)) {
|
|
28
|
-
return ConnectionState.VERIFIED;
|
|
32
|
+
if ((0, exports.isWalletVerified)(status)) {
|
|
33
|
+
return enums_1.ConnectionState.VERIFIED;
|
|
29
34
|
}
|
|
30
|
-
return ConnectionState.CONNECTED;
|
|
35
|
+
return enums_1.ConnectionState.CONNECTED;
|
|
31
36
|
};
|
|
37
|
+
exports.getWalletConnectionState = getWalletConnectionState;
|
|
32
38
|
//# sourceMappingURL=wallet-status.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-status.js","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"wallet-status.js","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,mCAAqD;AAgBrD;;GAEG;AACI,MAAM,iBAAiB,GAAG,CAC/B,MAA+B,EACP,EAAE;IAC1B,OAAO,CACL,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CACzE,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B;AAEF;;GAEG;AACI,MAAM,gBAAgB,GAAG,CAC9B,MAA+B,EACG,EAAE;IACpC,OAAO,CACL,IAAA,yBAAiB,EAAC,MAAM,CAAC;QACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAC1B,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B;AAEF;;GAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,MAA+B,EACd,EAAE;IACnB,IAAI,CAAC,IAAA,yBAAiB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,OAAO,uBAAe,CAAC,YAAY,CAAC;IACtC,CAAC;IAED,IAAI,IAAA,wBAAgB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,uBAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,OAAO,uBAAe,CAAC,SAAS,CAAC;AACnC,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
|
package/dist/types/common.js
CHANGED
package/dist/types/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
1
|
+
{"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Environment configuration types for cross-platform applications
|
|
3
4
|
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StorageType = void 0;
|
|
4
7
|
/**
|
|
5
8
|
* Storage type enumeration for cross-platform storage abstraction.
|
|
6
9
|
*
|
|
7
10
|
* Provides runtime-accessible values for different storage mechanisms
|
|
8
11
|
* across web browsers, React Native, and Node.js environments.
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
var StorageType;
|
|
11
14
|
(function (StorageType) {
|
|
12
15
|
/** Web browser localStorage for persistent client-side storage */
|
|
13
16
|
StorageType["LOCAL_STORAGE"] = "localStorage";
|
|
@@ -17,5 +20,5 @@ export var StorageType;
|
|
|
17
20
|
StorageType["ASYNC_STORAGE"] = "asyncStorage";
|
|
18
21
|
/** In-memory storage for testing or temporary data */
|
|
19
22
|
StorageType["MEMORY"] = "memory";
|
|
20
|
-
})(StorageType || (StorageType = {}));
|
|
23
|
+
})(StorageType || (exports.StorageType = StorageType = {}));
|
|
21
24
|
//# sourceMappingURL=environment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":"AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA4DH;;;;;GAKG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kEAAkE;IAClE,6CAA8B,CAAA;IAC9B,2DAA2D;IAC3D,iDAAkC,CAAA;IAClC,8DAA8D;IAC9D,6CAA8B,CAAA;IAC9B,sDAAsD;IACtD,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageType = void 0;
|
|
4
|
+
var environment_1 = require("./environment");
|
|
5
|
+
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
|
|
2
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":";;;AAGA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Entity Type Definitions
|
|
3
4
|
* @description Core types for the entity/organization system used across shapeshyft and whisperly
|
|
4
5
|
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.InvitationStatus = exports.EntityRole = exports.EntityType = void 0;
|
|
5
8
|
// ========================================
|
|
6
9
|
// ENUMS
|
|
7
10
|
// ========================================
|
|
@@ -10,16 +13,16 @@
|
|
|
10
13
|
* - personal: Auto-created for each user, cannot be deleted
|
|
11
14
|
* - organization: User-created, supports multiple members
|
|
12
15
|
*/
|
|
13
|
-
|
|
16
|
+
var EntityType;
|
|
14
17
|
(function (EntityType) {
|
|
15
18
|
EntityType["PERSONAL"] = "personal";
|
|
16
19
|
EntityType["ORGANIZATION"] = "organization";
|
|
17
|
-
})(EntityType || (EntityType = {}));
|
|
20
|
+
})(EntityType || (exports.EntityType = EntityType = {}));
|
|
18
21
|
/**
|
|
19
22
|
* Role of a user within an entity.
|
|
20
23
|
* Determines permissions for various operations.
|
|
21
24
|
*/
|
|
22
|
-
|
|
25
|
+
var EntityRole;
|
|
23
26
|
(function (EntityRole) {
|
|
24
27
|
/** Full access: manage entity, members, projects, and API keys */
|
|
25
28
|
EntityRole["ADMIN"] = "admin";
|
|
@@ -27,11 +30,11 @@ export var EntityRole;
|
|
|
27
30
|
EntityRole["MANAGER"] = "manager";
|
|
28
31
|
/** Read-only access to projects and API keys */
|
|
29
32
|
EntityRole["VIEWER"] = "viewer";
|
|
30
|
-
})(EntityRole || (EntityRole = {}));
|
|
33
|
+
})(EntityRole || (exports.EntityRole = EntityRole = {}));
|
|
31
34
|
/**
|
|
32
35
|
* Status of an entity invitation.
|
|
33
36
|
*/
|
|
34
|
-
|
|
37
|
+
var InvitationStatus;
|
|
35
38
|
(function (InvitationStatus) {
|
|
36
39
|
/** Invitation sent, awaiting response */
|
|
37
40
|
InvitationStatus["PENDING"] = "pending";
|
|
@@ -41,5 +44,5 @@ export var InvitationStatus;
|
|
|
41
44
|
InvitationStatus["DECLINED"] = "declined";
|
|
42
45
|
/** Invitation expired (not accepted within time limit) */
|
|
43
46
|
InvitationStatus["EXPIRED"] = "expired";
|
|
44
|
-
})(InvitationStatus || (InvitationStatus = {}));
|
|
47
|
+
})(InvitationStatus || (exports.InvitationStatus = InvitationStatus = {}));
|
|
45
48
|
//# sourceMappingURL=entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2CAA2C;AAC3C,QAAQ;AACR,2CAA2C;AAE3C;;;;GAIG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2CAA6B,CAAA;AAC/B,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED;;;GAGG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,kEAAkE;IAClE,6BAAe,CAAA;IACf,uEAAuE;IACvE,iCAAmB,CAAA;IACnB,gDAAgD;IAChD,+BAAiB,CAAA;AACnB,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;GAEG;AACH,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,yCAAyC;IACzC,uCAAmB,CAAA;IACnB,gDAAgD;IAChD,yCAAqB,CAAA;IACrB,yCAAyC;IACzC,yCAAqB,CAAA;IACrB,0DAA0D;IAC1D,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B"}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Entity Types Module
|
|
3
4
|
* @description Exports all entity-related types for organization/workspace management
|
|
4
5
|
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
21
|
// Core entity types and enums
|
|
6
|
-
|
|
22
|
+
__exportStar(require("./entity"), exports);
|
|
7
23
|
// Request types
|
|
8
|
-
|
|
24
|
+
__exportStar(require("./requests"), exports);
|
|
9
25
|
// Response types
|
|
10
|
-
|
|
26
|
+
__exportStar(require("./responses"), exports);
|
|
11
27
|
// Permission types and utilities
|
|
12
|
-
|
|
28
|
+
__exportStar(require("./permissions"), exports);
|
|
13
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/entity/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,8BAA8B;AAC9B,2CAAyB;AAEzB,gBAAgB;AAChB,6CAA2B;AAE3B,iBAAiB;AACjB,8CAA4B;AAE5B,iCAAiC;AACjC,gDAA8B"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Entity Permission Type Definitions
|
|
3
4
|
* @description Permission types and constants for role-based access control
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.ROLE_PERMISSIONS = void 0;
|
|
8
|
+
exports.getPermissionsForRole = getPermissionsForRole;
|
|
9
|
+
exports.hasPermission = hasPermission;
|
|
10
|
+
const entity_1 = require("./entity");
|
|
6
11
|
// ========================================
|
|
7
12
|
// ROLE PERMISSION MAPPINGS
|
|
8
13
|
// ========================================
|
|
@@ -58,10 +63,10 @@ const VIEWER_PERMISSIONS = {
|
|
|
58
63
|
* Maps each role to its permission set.
|
|
59
64
|
* Used by permission checking utilities.
|
|
60
65
|
*/
|
|
61
|
-
|
|
62
|
-
[EntityRole.ADMIN]: ADMIN_PERMISSIONS,
|
|
63
|
-
[EntityRole.MANAGER]: MANAGER_PERMISSIONS,
|
|
64
|
-
[EntityRole.VIEWER]: VIEWER_PERMISSIONS,
|
|
66
|
+
exports.ROLE_PERMISSIONS = {
|
|
67
|
+
[entity_1.EntityRole.ADMIN]: ADMIN_PERMISSIONS,
|
|
68
|
+
[entity_1.EntityRole.MANAGER]: MANAGER_PERMISSIONS,
|
|
69
|
+
[entity_1.EntityRole.VIEWER]: VIEWER_PERMISSIONS,
|
|
65
70
|
};
|
|
66
71
|
// ========================================
|
|
67
72
|
// UTILITY FUNCTIONS
|
|
@@ -71,8 +76,8 @@ export const ROLE_PERMISSIONS = {
|
|
|
71
76
|
* @param role - The entity role
|
|
72
77
|
* @returns The permission set for that role
|
|
73
78
|
*/
|
|
74
|
-
|
|
75
|
-
return ROLE_PERMISSIONS[role];
|
|
79
|
+
function getPermissionsForRole(role) {
|
|
80
|
+
return exports.ROLE_PERMISSIONS[role];
|
|
76
81
|
}
|
|
77
82
|
/**
|
|
78
83
|
* Check if a role has a specific permission.
|
|
@@ -80,7 +85,7 @@ export function getPermissionsForRole(role) {
|
|
|
80
85
|
* @param permission - The permission key to check
|
|
81
86
|
* @returns Whether the role has the permission
|
|
82
87
|
*/
|
|
83
|
-
|
|
84
|
-
return ROLE_PERMISSIONS[role][permission];
|
|
88
|
+
function hasPermission(role, permission) {
|
|
89
|
+
return exports.ROLE_PERMISSIONS[role][permission];
|
|
85
90
|
}
|
|
86
91
|
//# sourceMappingURL=permissions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA6GH,sDAEC;AAQD,sCAKC;AA1HD,qCAAsC;AAiCtC,2CAA2C;AAC3C,2BAA2B;AAC3B,2CAA2C;AAE3C;;;GAGG;AACH,MAAM,iBAAiB,GAAsB;IAC3C,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,mBAAmB,GAAsB;IAC7C,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,kBAAkB,GAAsB;IAC5C,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;GAGG;AACU,QAAA,gBAAgB,GAA0C;IACrE,CAAC,mBAAU,CAAC,KAAK,CAAC,EAAE,iBAAiB;IACrC,CAAC,mBAAU,CAAC,OAAO,CAAC,EAAE,mBAAmB;IACzC,CAAC,mBAAU,CAAC,MAAM,CAAC,EAAE,kBAAkB;CACxC,CAAC;AAEF,2CAA2C;AAC3C,oBAAoB;AACpB,2CAA2C;AAE3C;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,IAAgB;IACpD,OAAO,wBAAgB,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,IAAgB,EAChB,UAAmC;IAEnC,OAAO,wBAAgB,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/types/entity/requests.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../src/types/entity/requests.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/types/entity/responses.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/types/entity/responses.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,15 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
17
|
// Common utility types
|
|
2
|
-
|
|
18
|
+
__exportStar(require("./common"), exports);
|
|
3
19
|
// Business domain types
|
|
4
|
-
|
|
20
|
+
__exportStar(require("./business"), exports);
|
|
5
21
|
// Blockchain and crypto types
|
|
6
|
-
|
|
22
|
+
__exportStar(require("./blockchain"), exports);
|
|
7
23
|
// Application configuration
|
|
8
|
-
|
|
24
|
+
__exportStar(require("./config"), exports);
|
|
9
25
|
// Infrastructure types
|
|
10
|
-
|
|
26
|
+
__exportStar(require("./infrastructure"), exports);
|
|
11
27
|
// Subscription types (rate limits, etc.)
|
|
12
|
-
|
|
28
|
+
__exportStar(require("./subscription"), exports);
|
|
13
29
|
// Entity types (organizations, workspaces, members)
|
|
14
|
-
|
|
30
|
+
__exportStar(require("./entity"), exports);
|
|
15
31
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,uBAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,2CAAyB;AAEzB,wBAAwB;AACxB,6CAA2B;AAE3B,8BAA8B;AAC9B,+CAA6B;AAE7B,4BAA4B;AAC5B,2CAAyB;AAEzB,uBAAuB;AACvB,mDAAiC;AAEjC,yCAAyC;AACzC,iDAA+B;AAE/B,oDAAoD;AACpD,2CAAyB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Analytics types and interfaces
|
|
3
4
|
* Platform-agnostic analytics service interface for dependency injection
|
|
@@ -7,6 +8,8 @@
|
|
|
7
8
|
* @ai-platform Cross-platform compatible (Web, React Native, Node.js)
|
|
8
9
|
* @ai-usage Implement this interface to create analytics services for Firebase, Mixpanel, etc.
|
|
9
10
|
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AnalyticsEventBuilder = exports.AnalyticsEvent = void 0;
|
|
10
13
|
/**
|
|
11
14
|
* Standardized analytics events enumeration.
|
|
12
15
|
*
|
|
@@ -20,7 +23,7 @@
|
|
|
20
23
|
* analytics.track(AnalyticsEvent.EMAIL_OPENED, { email_id: 'msg-123' });
|
|
21
24
|
* ```
|
|
22
25
|
*/
|
|
23
|
-
|
|
26
|
+
var AnalyticsEvent;
|
|
24
27
|
(function (AnalyticsEvent) {
|
|
25
28
|
/** User successfully logged into the application */
|
|
26
29
|
AnalyticsEvent["USER_LOGIN"] = "user_login";
|
|
@@ -70,7 +73,7 @@ export var AnalyticsEvent;
|
|
|
70
73
|
AnalyticsEvent["AB_TEST_CONVERTED"] = "ab_test_converted";
|
|
71
74
|
/** Custom application-specific event */
|
|
72
75
|
AnalyticsEvent["CUSTOM_EVENT"] = "custom_event";
|
|
73
|
-
})(AnalyticsEvent || (AnalyticsEvent = {}));
|
|
76
|
+
})(AnalyticsEvent || (exports.AnalyticsEvent = AnalyticsEvent = {}));
|
|
74
77
|
/**
|
|
75
78
|
* Utility class for building standardized analytics event properties.
|
|
76
79
|
*
|
|
@@ -89,7 +92,7 @@ export var AnalyticsEvent;
|
|
|
89
92
|
* analytics.trackEvent(AnalyticsEvent.EMAIL_OPENED, properties);
|
|
90
93
|
* ```
|
|
91
94
|
*/
|
|
92
|
-
|
|
95
|
+
class AnalyticsEventBuilder {
|
|
93
96
|
/**
|
|
94
97
|
* Build properties for email action events.
|
|
95
98
|
*
|
|
@@ -205,4 +208,5 @@ export class AnalyticsEventBuilder {
|
|
|
205
208
|
};
|
|
206
209
|
}
|
|
207
210
|
}
|
|
211
|
+
exports.AnalyticsEventBuilder = AnalyticsEventBuilder;
|
|
208
212
|
//# sourceMappingURL=analytics.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/types/infrastructure/analytics.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/types/infrastructure/analytics.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Core API Type Definitions
|
|
3
4
|
* @description Centralized type definitions for API requests/responses and data structures
|
|
@@ -8,20 +9,23 @@
|
|
|
8
9
|
* - Multi-chain data structures
|
|
9
10
|
* - Database entity interfaces
|
|
10
11
|
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ProcessedEventName = exports.ContractType = exports.ChainType = void 0;
|
|
11
14
|
// Re-export ChainType from business enums
|
|
12
|
-
|
|
15
|
+
var enums_1 = require("../business/enums");
|
|
16
|
+
Object.defineProperty(exports, "ChainType", { enumerable: true, get: function () { return enums_1.ChainType; } });
|
|
13
17
|
/**
|
|
14
18
|
* Contract types supported by the indexer
|
|
15
19
|
*/
|
|
16
|
-
|
|
20
|
+
var ContractType;
|
|
17
21
|
(function (ContractType) {
|
|
18
22
|
ContractType["Mailer"] = "Mailer";
|
|
19
23
|
ContractType["MailService"] = "MailService";
|
|
20
|
-
})(ContractType || (ContractType = {}));
|
|
24
|
+
})(ContractType || (exports.ContractType = ContractType = {}));
|
|
21
25
|
/**
|
|
22
26
|
* Event names processed by the indexer
|
|
23
27
|
*/
|
|
24
|
-
|
|
28
|
+
var ProcessedEventName;
|
|
25
29
|
(function (ProcessedEventName) {
|
|
26
30
|
ProcessedEventName["MailSent"] = "MailSent";
|
|
27
31
|
ProcessedEventName["PreparedMailSent"] = "PreparedMailSent";
|
|
@@ -35,5 +39,5 @@ export var ProcessedEventName;
|
|
|
35
39
|
ProcessedEventName["RecipientClaimed"] = "RecipientClaimed";
|
|
36
40
|
ProcessedEventName["OwnerClaimed"] = "OwnerClaimed";
|
|
37
41
|
ProcessedEventName["ExpiredSharesClaimed"] = "ExpiredSharesClaimed";
|
|
38
|
-
})(ProcessedEventName || (ProcessedEventName = {}));
|
|
42
|
+
})(ProcessedEventName || (exports.ProcessedEventName = ProcessedEventName = {}));
|
|
39
43
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/types/infrastructure/api.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/types/infrastructure/api.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAIH,0CAA0C;AAC1C,2CAA8C;AAArC,kGAAA,SAAS,OAAA;AA0LlB;;GAEG;AACH,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,2CAA2B,CAAA;AAC7B,CAAC,EAHW,YAAY,4BAAZ,YAAY,QAGvB;AAED;;GAEG;AACH,IAAY,kBAaX;AAbD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,2DAAqC,CAAA;IACrC,qDAA+B,CAAA;IAC/B,6DAAuC,CAAA;IACvC,2DAAqC,CAAA;IACrC,uDAAiC,CAAA;IACjC,uDAAiC,CAAA;IACjC,+CAAyB,CAAA;IACzB,uDAAiC,CAAA;IACjC,2DAAqC,CAAA;IACrC,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;AAC/C,CAAC,EAbW,kBAAkB,kCAAlB,kBAAkB,QAa7B"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletType = exports.NetworkError = exports.ProcessedEventName = exports.ContractType = exports.ChainType = exports.AnalyticsEventBuilder = exports.AnalyticsEvent = void 0;
|
|
4
|
+
var analytics_1 = require("./analytics");
|
|
5
|
+
Object.defineProperty(exports, "AnalyticsEvent", { enumerable: true, get: function () { return analytics_1.AnalyticsEvent; } });
|
|
6
|
+
Object.defineProperty(exports, "AnalyticsEventBuilder", { enumerable: true, get: function () { return analytics_1.AnalyticsEventBuilder; } });
|
|
7
|
+
var api_1 = require("./api");
|
|
8
|
+
Object.defineProperty(exports, "ChainType", { enumerable: true, get: function () { return api_1.ChainType; } });
|
|
9
|
+
Object.defineProperty(exports, "ContractType", { enumerable: true, get: function () { return api_1.ContractType; } });
|
|
10
|
+
Object.defineProperty(exports, "ProcessedEventName", { enumerable: true, get: function () { return api_1.ProcessedEventName; } });
|
|
11
|
+
var network_1 = require("./network");
|
|
12
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return network_1.NetworkError; } });
|
|
4
13
|
// Wallet types
|
|
5
|
-
|
|
14
|
+
var wallet_1 = require("./wallet");
|
|
15
|
+
Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return wallet_1.WalletType; } });
|
|
6
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/infrastructure/index.ts"],"names":[],"mappings":"AAQA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/infrastructure/index.ts"],"names":[],"mappings":";;;AAQA,yCAAoE;AAA3D,2GAAA,cAAc,OAAA;AAAE,kHAAA,qBAAqB,OAAA;AAoB9C,6BAAoE;AAA3D,gGAAA,SAAS,OAAA;AAAE,mGAAA,YAAY,OAAA;AAAE,yGAAA,kBAAkB,OAAA;AASpD,qCAAyC;AAAhC,uGAAA,YAAY,OAAA;AAYrB,eAAe;AACf,mCAAsC;AAA7B,oGAAA,UAAU,OAAA"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Network client interface for dependency injection
|
|
3
4
|
* Platform-agnostic HTTP client interface
|
|
4
5
|
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.NetworkError = void 0;
|
|
5
8
|
class NetworkError extends Error {
|
|
6
9
|
constructor(message, status, statusText, response) {
|
|
7
10
|
super(message);
|
|
@@ -11,5 +14,5 @@ class NetworkError extends Error {
|
|
|
11
14
|
this.response = response;
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
|
-
|
|
17
|
+
exports.NetworkError = NetworkError;
|
|
15
18
|
//# sourceMappingURL=network.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../src/types/infrastructure/network.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"network.js","sourceRoot":"","sources":["../../../src/types/infrastructure/network.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+DH,MAAM,YAAa,SAAQ,KAAK;IAK9B,YACE,OAAe,EACf,MAAc,EACd,UAAkB,EAClB,QAA4B;QAE5B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAMC,oCAAY"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Wallet and blockchain types
|
|
3
4
|
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WalletType = void 0;
|
|
4
7
|
/**
|
|
5
8
|
* Cryptocurrency wallet type enumeration.
|
|
6
9
|
*
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
* }
|
|
19
22
|
* ```
|
|
20
23
|
*/
|
|
21
|
-
|
|
24
|
+
var WalletType;
|
|
22
25
|
(function (WalletType) {
|
|
23
26
|
/** MetaMask browser extension wallet */
|
|
24
27
|
WalletType["METAMASK"] = "metamask";
|
|
@@ -30,5 +33,5 @@ export var WalletType;
|
|
|
30
33
|
WalletType["WALLETCONNECT"] = "walletconnect";
|
|
31
34
|
/** Generic injected wallet provider */
|
|
32
35
|
WalletType["INJECTED"] = "injected";
|
|
33
|
-
})(WalletType || (WalletType = {}));
|
|
36
|
+
})(WalletType || (exports.WalletType = WalletType = {}));
|
|
34
37
|
//# sourceMappingURL=wallet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../src/types/infrastructure/wallet.ts"],"names":[],"mappings":"AAAA;;GAEG
|
|
1
|
+
{"version":3,"file":"wallet.js","sourceRoot":"","sources":["../../../src/types/infrastructure/wallet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,IAAY,UAWX;AAXD,WAAY,UAAU;IACpB,wCAAwC;IACxC,mCAAqB,CAAA;IACrB,4CAA4C;IAC5C,iCAAmB,CAAA;IACnB,sBAAsB;IACtB,mCAAqB,CAAA;IACrB,gDAAgD;IAChD,6CAA+B,CAAA;IAC/B,uCAAuC;IACvC,mCAAqB,CAAA;AACvB,CAAC,EAXW,UAAU,0BAAV,UAAU,QAWrB"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
17
|
// Rate limit types
|
|
2
|
-
|
|
18
|
+
__exportStar(require("./rate-limits"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/subscription/index.ts"],"names":[],"mappings":"AAAA,mBAAmB;AACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/subscription/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mBAAmB;AACnB,gDAA8B"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* @fileoverview Rate Limit Type Definitions
|
|
3
4
|
* @description Types for rate limiting endpoints across sudojo_api, shapeshyft_api, and whisperly_api
|
|
4
5
|
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.RateLimitPeriodType = void 0;
|
|
5
8
|
// ========================================
|
|
6
9
|
// RATE LIMIT HISTORY TYPES
|
|
7
10
|
// ========================================
|
|
8
11
|
/**
|
|
9
12
|
* Valid period types for rate limit history.
|
|
10
13
|
*/
|
|
11
|
-
|
|
14
|
+
var RateLimitPeriodType;
|
|
12
15
|
(function (RateLimitPeriodType) {
|
|
13
16
|
RateLimitPeriodType["HOUR"] = "hour";
|
|
14
17
|
RateLimitPeriodType["DAY"] = "day";
|
|
15
18
|
RateLimitPeriodType["MONTH"] = "month";
|
|
16
|
-
})(RateLimitPeriodType || (RateLimitPeriodType = {}));
|
|
19
|
+
})(RateLimitPeriodType || (exports.RateLimitPeriodType = RateLimitPeriodType = {}));
|
|
17
20
|
//# sourceMappingURL=rate-limits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rate-limits.js","sourceRoot":"","sources":["../../../src/types/subscription/rate-limits.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"rate-limits.js","sourceRoot":"","sources":["../../../src/types/subscription/rate-limits.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAiEH,2CAA2C;AAC3C,2BAA2B;AAC3B,2CAA2C;AAE3C;;GAEG;AACH,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,kCAAW,CAAA;IACX,sCAAe,CAAA;AACjB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|