@metamask-previews/claims-controller 0.5.4-preview-316ba6af0 → 0.5.4-preview-e57e5c3dc
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/CHANGELOG.md +0 -9
- package/dist/ClaimsController.cjs.map +1 -1
- package/dist/ClaimsController.d.cts +1 -1
- package/dist/ClaimsController.d.cts.map +1 -1
- package/dist/ClaimsController.d.mts +1 -1
- package/dist/ClaimsController.d.mts.map +1 -1
- package/dist/ClaimsController.mjs.map +1 -1
- package/dist/ClaimsService.cjs +62 -122
- package/dist/ClaimsService.cjs.map +1 -1
- package/dist/ClaimsService.d.cts +32 -56
- package/dist/ClaimsService.d.cts.map +1 -1
- package/dist/ClaimsService.d.mts +32 -56
- package/dist/ClaimsService.d.mts.map +1 -1
- package/dist/ClaimsService.mjs +62 -122
- package/dist/ClaimsService.mjs.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -5
- package/dist/ClaimsService-method-action-types.cjs +0 -7
- package/dist/ClaimsService-method-action-types.cjs.map +0 -1
- package/dist/ClaimsService-method-action-types.d.cts +0 -67
- package/dist/ClaimsService-method-action-types.d.cts.map +0 -1
- package/dist/ClaimsService-method-action-types.d.mts +0 -67
- package/dist/ClaimsService-method-action-types.d.mts.map +0 -1
- package/dist/ClaimsService-method-action-types.mjs +0 -6
- package/dist/ClaimsService-method-action-types.mjs.map +0 -1
- package/dist/ClaimsService-structs.cjs +0 -36
- package/dist/ClaimsService-structs.cjs.map +0 -1
- package/dist/ClaimsService-structs.d.cts +0 -71
- package/dist/ClaimsService-structs.d.cts.map +0 -1
- package/dist/ClaimsService-structs.d.mts +0 -71
- package/dist/ClaimsService-structs.d.mts.map +0 -1
- package/dist/ClaimsService-structs.mjs +0 -33
- package/dist/ClaimsService-structs.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export { ClaimsController, getDefaultClaimsControllerState, } from "./ClaimsController.mjs";
|
|
2
|
-
export type { ClaimsControllerGetStateAction, ClaimsControllerActions, ClaimsControllerStateChangeEvent, ClaimsControllerMessenger,
|
|
2
|
+
export type { ClaimsControllerGetStateAction, ClaimsControllerActions, ClaimsControllerStateChangeEvent, ClaimsControllerMessenger, } from "./ClaimsController.mjs";
|
|
3
3
|
export type { ClaimsControllerFetchClaimsConfigurationsAction, ClaimsControllerGetSubmitClaimConfigAction, ClaimsControllerGenerateClaimSignatureAction, ClaimsControllerGetClaimsAction, ClaimsControllerSaveOrUpdateClaimDraftAction, ClaimsControllerGetClaimDraftsAction, ClaimsControllerDeleteClaimDraftAction, ClaimsControllerDeleteAllClaimDraftsAction, ClaimsControllerClearStateAction, } from "./ClaimsController-method-action-types.mjs";
|
|
4
4
|
export type { Claim, ClaimsControllerState, Attachment, ClaimsConfigurations, CreateClaimRequest, SubmitClaimConfig, ClaimDraft, } from "./types.mjs";
|
|
5
5
|
export { ClaimsService } from "./ClaimsService.mjs";
|
|
6
|
-
export type { ClaimsServiceFetchClaimsConfigurationsAction, ClaimsServiceGetClaimsAction, ClaimsServiceGetRequestHeadersAction, ClaimsServiceGetClaimsApiUrlAction, ClaimsServiceGetClaimByIdAction, ClaimsServiceGenerateMessageForClaimSignatureAction, } from "./ClaimsService
|
|
7
|
-
export type { ClaimsServiceActions, ClaimsServiceConfig, ClaimsServiceMessenger, ClaimsServiceInvalidateQueriesAction, ClaimsServiceCacheUpdatedEvent, ClaimsServiceGranularCacheUpdatedEvent, ClaimsServiceEvents, } from "./ClaimsService.mjs";
|
|
6
|
+
export type { ClaimsServiceFetchClaimsConfigurationsAction, ClaimsServiceGetClaimsAction, ClaimsServiceGetRequestHeadersAction, ClaimsServiceGetClaimsApiUrlAction, ClaimsServiceGetClaimByIdAction, ClaimsServiceGenerateMessageForClaimSignatureAction, ClaimsServiceActions, ClaimsServiceMessenger, } from "./ClaimsService.mjs";
|
|
8
7
|
export { ClaimStatusEnum, Env, ClaimsControllerErrorMessages, DEFAULT_CLAIMS_CONFIGURATIONS, ClaimsServiceErrorMessages, CLAIMS_API_URL_MAP, } from "./constants.mjs";
|
|
9
8
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,+BAA+B,GAChC,+BAA8B;AAE/B,YAAY,EACV,8BAA8B,EAC9B,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,+BAA+B,GAChC,+BAA8B;AAE/B,YAAY,EACV,8BAA8B,EAC9B,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,GAC1B,+BAA8B;AAE/B,YAAY,EACV,+CAA+C,EAC/C,0CAA0C,EAC1C,4CAA4C,EAC5C,+BAA+B,EAC/B,4CAA4C,EAC5C,oCAAoC,EACpC,sCAAsC,EACtC,0CAA0C,EAC1C,gCAAgC,GACjC,mDAAkD;AAEnD,YAAY,EACV,KAAK,EACL,qBAAqB,EACrB,UAAU,EACV,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,GACX,oBAAmB;AAEpB,OAAO,EAAE,aAAa,EAAE,4BAA2B;AAEnD,YAAY,EACV,4CAA4C,EAC5C,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EAClC,+BAA+B,EAC/B,mDAAmD,EACnD,oBAAoB,EACpB,sBAAsB,GACvB,4BAA2B;AAE5B,OAAO,EACL,eAAe,EACf,GAAG,EACH,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,kBAAkB,GACnB,wBAAuB"}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,+BAA+B,EAChC,+BAA8B;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,+BAA+B,EAChC,+BAA8B;AA+B/B,OAAO,EAAE,aAAa,EAAE,4BAA2B;AAanD,OAAO,EACL,eAAe,EACf,GAAG,EACH,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,kBAAkB,EACnB,wBAAuB","sourcesContent":["export {\n ClaimsController,\n getDefaultClaimsControllerState,\n} from './ClaimsController.js';\n\nexport type {\n ClaimsControllerGetStateAction,\n ClaimsControllerActions,\n ClaimsControllerStateChangeEvent,\n ClaimsControllerMessenger,\n} from './ClaimsController.js';\n\nexport type {\n ClaimsControllerFetchClaimsConfigurationsAction,\n ClaimsControllerGetSubmitClaimConfigAction,\n ClaimsControllerGenerateClaimSignatureAction,\n ClaimsControllerGetClaimsAction,\n ClaimsControllerSaveOrUpdateClaimDraftAction,\n ClaimsControllerGetClaimDraftsAction,\n ClaimsControllerDeleteClaimDraftAction,\n ClaimsControllerDeleteAllClaimDraftsAction,\n ClaimsControllerClearStateAction,\n} from './ClaimsController-method-action-types.js';\n\nexport type {\n Claim,\n ClaimsControllerState,\n Attachment,\n ClaimsConfigurations,\n CreateClaimRequest,\n SubmitClaimConfig,\n ClaimDraft,\n} from './types.js';\n\nexport { ClaimsService } from './ClaimsService.js';\n\nexport type {\n ClaimsServiceFetchClaimsConfigurationsAction,\n ClaimsServiceGetClaimsAction,\n ClaimsServiceGetRequestHeadersAction,\n ClaimsServiceGetClaimsApiUrlAction,\n ClaimsServiceGetClaimByIdAction,\n ClaimsServiceGenerateMessageForClaimSignatureAction,\n ClaimsServiceActions,\n ClaimsServiceMessenger,\n} from './ClaimsService.js';\n\nexport {\n ClaimStatusEnum,\n Env,\n ClaimsControllerErrorMessages,\n DEFAULT_CLAIMS_CONFIGURATIONS,\n ClaimsServiceErrorMessages,\n CLAIMS_API_URL_MAP,\n} from './constants.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/claims-controller",
|
|
3
|
-
"version": "0.5.4-preview-
|
|
3
|
+
"version": "0.5.4-preview-e57e5c3dc",
|
|
4
4
|
"description": "Controller handling shield subscription claims logic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|
|
@@ -56,14 +56,11 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@metamask/base-controller": "^9.1.0",
|
|
59
|
-
"@metamask/base-data-service": "^0.1.3",
|
|
60
59
|
"@metamask/controller-utils": "^12.3.0",
|
|
61
60
|
"@metamask/keyring-controller": "^27.1.1",
|
|
62
61
|
"@metamask/messenger": "^2.0.0",
|
|
63
62
|
"@metamask/profile-sync-controller": "^29.0.0",
|
|
64
|
-
"@metamask/
|
|
65
|
-
"@metamask/utils": "^11.11.0",
|
|
66
|
-
"@tanstack/query-core": "^4.43.0"
|
|
63
|
+
"@metamask/utils": "^11.11.0"
|
|
67
64
|
},
|
|
68
65
|
"devDependencies": {
|
|
69
66
|
"@metamask/auto-changelog": "^6.1.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-method-action-types.cjs","sourceRoot":"","sources":["../src/ClaimsService-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { ClaimsService } from './ClaimsService.js';\n\n/**\n * Fetch required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsServiceFetchClaimsConfigurationsAction = {\n type: `ClaimsService:fetchClaimsConfigurations`;\n handler: ClaimsService['fetchClaimsConfigurations'];\n};\n\n/**\n * Get the claims for the current user.\n *\n * @returns The claims for the current user.\n */\nexport type ClaimsServiceGetClaimsAction = {\n type: `ClaimsService:getClaims`;\n handler: ClaimsService['getClaims'];\n};\n\n/**\n * Get the claim by id.\n *\n * @param id - The id of the claim to get.\n * @returns The claim by id.\n */\nexport type ClaimsServiceGetClaimByIdAction = {\n type: `ClaimsService:getClaimById`;\n handler: ClaimsService['getClaimById'];\n};\n\n/**\n * Generate a message to be signed by the user for the claim request.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The message for the claim signature.\n */\nexport type ClaimsServiceGenerateMessageForClaimSignatureAction = {\n type: `ClaimsService:generateMessageForClaimSignature`;\n handler: ClaimsService['generateMessageForClaimSignature'];\n};\n\n/**\n * Create the headers for the current request.\n *\n * @returns The headers for the current request.\n */\nexport type ClaimsServiceGetRequestHeadersAction = {\n type: `ClaimsService:getRequestHeaders`;\n handler: ClaimsService['getRequestHeaders'];\n};\n\n/**\n * Get the URL for the claims API for the current environment.\n *\n * @returns The URL for the claims API for the current environment.\n */\nexport type ClaimsServiceGetClaimsApiUrlAction = {\n type: `ClaimsService:getClaimsApiUrl`;\n handler: ClaimsService['getClaimsApiUrl'];\n};\n\n/**\n * Union of all ClaimsService action types.\n */\nexport type ClaimsServiceMethodActions =\n | ClaimsServiceFetchClaimsConfigurationsAction\n | ClaimsServiceGetClaimsAction\n | ClaimsServiceGetClaimByIdAction\n | ClaimsServiceGenerateMessageForClaimSignatureAction\n | ClaimsServiceGetRequestHeadersAction\n | ClaimsServiceGetClaimsApiUrlAction;\n"]}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is auto generated.
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { ClaimsService } from "./ClaimsService.cjs";
|
|
6
|
-
/**
|
|
7
|
-
* Fetch required configurations for the claims service.
|
|
8
|
-
*
|
|
9
|
-
* @returns The required configurations for the claims service.
|
|
10
|
-
*/
|
|
11
|
-
export type ClaimsServiceFetchClaimsConfigurationsAction = {
|
|
12
|
-
type: `ClaimsService:fetchClaimsConfigurations`;
|
|
13
|
-
handler: ClaimsService['fetchClaimsConfigurations'];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Get the claims for the current user.
|
|
17
|
-
*
|
|
18
|
-
* @returns The claims for the current user.
|
|
19
|
-
*/
|
|
20
|
-
export type ClaimsServiceGetClaimsAction = {
|
|
21
|
-
type: `ClaimsService:getClaims`;
|
|
22
|
-
handler: ClaimsService['getClaims'];
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Get the claim by id.
|
|
26
|
-
*
|
|
27
|
-
* @param id - The id of the claim to get.
|
|
28
|
-
* @returns The claim by id.
|
|
29
|
-
*/
|
|
30
|
-
export type ClaimsServiceGetClaimByIdAction = {
|
|
31
|
-
type: `ClaimsService:getClaimById`;
|
|
32
|
-
handler: ClaimsService['getClaimById'];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Generate a message to be signed by the user for the claim request.
|
|
36
|
-
*
|
|
37
|
-
* @param chainId - The chain id of the claim.
|
|
38
|
-
* @param walletAddress - The impacted wallet address of the claim.
|
|
39
|
-
* @returns The message for the claim signature.
|
|
40
|
-
*/
|
|
41
|
-
export type ClaimsServiceGenerateMessageForClaimSignatureAction = {
|
|
42
|
-
type: `ClaimsService:generateMessageForClaimSignature`;
|
|
43
|
-
handler: ClaimsService['generateMessageForClaimSignature'];
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Create the headers for the current request.
|
|
47
|
-
*
|
|
48
|
-
* @returns The headers for the current request.
|
|
49
|
-
*/
|
|
50
|
-
export type ClaimsServiceGetRequestHeadersAction = {
|
|
51
|
-
type: `ClaimsService:getRequestHeaders`;
|
|
52
|
-
handler: ClaimsService['getRequestHeaders'];
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Get the URL for the claims API for the current environment.
|
|
56
|
-
*
|
|
57
|
-
* @returns The URL for the claims API for the current environment.
|
|
58
|
-
*/
|
|
59
|
-
export type ClaimsServiceGetClaimsApiUrlAction = {
|
|
60
|
-
type: `ClaimsService:getClaimsApiUrl`;
|
|
61
|
-
handler: ClaimsService['getClaimsApiUrl'];
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Union of all ClaimsService action types.
|
|
65
|
-
*/
|
|
66
|
-
export type ClaimsServiceMethodActions = ClaimsServiceFetchClaimsConfigurationsAction | ClaimsServiceGetClaimsAction | ClaimsServiceGetClaimByIdAction | ClaimsServiceGenerateMessageForClaimSignatureAction | ClaimsServiceGetRequestHeadersAction | ClaimsServiceGetClaimsApiUrlAction;
|
|
67
|
-
//# sourceMappingURL=ClaimsService-method-action-types.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-method-action-types.d.cts","sourceRoot":"","sources":["../src/ClaimsService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,4BAA2B;AAExD;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,aAAa,CAAC,2BAA2B,CAAC,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,gDAAgD,CAAC;IACvD,OAAO,EAAE,aAAa,CAAC,kCAAkC,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,+BAA+B,CAAC;IACtC,OAAO,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,4CAA4C,GAC5C,4BAA4B,GAC5B,+BAA+B,GAC/B,mDAAmD,GACnD,oCAAoC,GACpC,kCAAkC,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file is auto generated.
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
import type { ClaimsService } from "./ClaimsService.mjs";
|
|
6
|
-
/**
|
|
7
|
-
* Fetch required configurations for the claims service.
|
|
8
|
-
*
|
|
9
|
-
* @returns The required configurations for the claims service.
|
|
10
|
-
*/
|
|
11
|
-
export type ClaimsServiceFetchClaimsConfigurationsAction = {
|
|
12
|
-
type: `ClaimsService:fetchClaimsConfigurations`;
|
|
13
|
-
handler: ClaimsService['fetchClaimsConfigurations'];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Get the claims for the current user.
|
|
17
|
-
*
|
|
18
|
-
* @returns The claims for the current user.
|
|
19
|
-
*/
|
|
20
|
-
export type ClaimsServiceGetClaimsAction = {
|
|
21
|
-
type: `ClaimsService:getClaims`;
|
|
22
|
-
handler: ClaimsService['getClaims'];
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Get the claim by id.
|
|
26
|
-
*
|
|
27
|
-
* @param id - The id of the claim to get.
|
|
28
|
-
* @returns The claim by id.
|
|
29
|
-
*/
|
|
30
|
-
export type ClaimsServiceGetClaimByIdAction = {
|
|
31
|
-
type: `ClaimsService:getClaimById`;
|
|
32
|
-
handler: ClaimsService['getClaimById'];
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Generate a message to be signed by the user for the claim request.
|
|
36
|
-
*
|
|
37
|
-
* @param chainId - The chain id of the claim.
|
|
38
|
-
* @param walletAddress - The impacted wallet address of the claim.
|
|
39
|
-
* @returns The message for the claim signature.
|
|
40
|
-
*/
|
|
41
|
-
export type ClaimsServiceGenerateMessageForClaimSignatureAction = {
|
|
42
|
-
type: `ClaimsService:generateMessageForClaimSignature`;
|
|
43
|
-
handler: ClaimsService['generateMessageForClaimSignature'];
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Create the headers for the current request.
|
|
47
|
-
*
|
|
48
|
-
* @returns The headers for the current request.
|
|
49
|
-
*/
|
|
50
|
-
export type ClaimsServiceGetRequestHeadersAction = {
|
|
51
|
-
type: `ClaimsService:getRequestHeaders`;
|
|
52
|
-
handler: ClaimsService['getRequestHeaders'];
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Get the URL for the claims API for the current environment.
|
|
56
|
-
*
|
|
57
|
-
* @returns The URL for the claims API for the current environment.
|
|
58
|
-
*/
|
|
59
|
-
export type ClaimsServiceGetClaimsApiUrlAction = {
|
|
60
|
-
type: `ClaimsService:getClaimsApiUrl`;
|
|
61
|
-
handler: ClaimsService['getClaimsApiUrl'];
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Union of all ClaimsService action types.
|
|
65
|
-
*/
|
|
66
|
-
export type ClaimsServiceMethodActions = ClaimsServiceFetchClaimsConfigurationsAction | ClaimsServiceGetClaimsAction | ClaimsServiceGetClaimByIdAction | ClaimsServiceGenerateMessageForClaimSignatureAction | ClaimsServiceGetRequestHeadersAction | ClaimsServiceGetClaimsApiUrlAction;
|
|
67
|
-
//# sourceMappingURL=ClaimsService-method-action-types.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-method-action-types.d.mts","sourceRoot":"","sources":["../src/ClaimsService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,4BAA2B;AAExD;;;;GAIG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD,IAAI,EAAE,yCAAyC,CAAC;IAChD,OAAO,EAAE,aAAa,CAAC,2BAA2B,CAAC,CAAC;CACrD,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACrC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,mDAAmD,GAAG;IAChE,IAAI,EAAE,gDAAgD,CAAC;IACvD,OAAO,EAAE,aAAa,CAAC,kCAAkC,CAAC,CAAC;CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,iCAAiC,CAAC;IACxC,OAAO,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;CAC7C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,+BAA+B,CAAC;IACtC,OAAO,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAClC,4CAA4C,GAC5C,4BAA4B,GAC5B,+BAA+B,GAC/B,mDAAmD,GACnD,oCAAoC,GACpC,kCAAkC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-method-action-types.mjs","sourceRoot":"","sources":["../src/ClaimsService-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { ClaimsService } from './ClaimsService.js';\n\n/**\n * Fetch required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsServiceFetchClaimsConfigurationsAction = {\n type: `ClaimsService:fetchClaimsConfigurations`;\n handler: ClaimsService['fetchClaimsConfigurations'];\n};\n\n/**\n * Get the claims for the current user.\n *\n * @returns The claims for the current user.\n */\nexport type ClaimsServiceGetClaimsAction = {\n type: `ClaimsService:getClaims`;\n handler: ClaimsService['getClaims'];\n};\n\n/**\n * Get the claim by id.\n *\n * @param id - The id of the claim to get.\n * @returns The claim by id.\n */\nexport type ClaimsServiceGetClaimByIdAction = {\n type: `ClaimsService:getClaimById`;\n handler: ClaimsService['getClaimById'];\n};\n\n/**\n * Generate a message to be signed by the user for the claim request.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The message for the claim signature.\n */\nexport type ClaimsServiceGenerateMessageForClaimSignatureAction = {\n type: `ClaimsService:generateMessageForClaimSignature`;\n handler: ClaimsService['generateMessageForClaimSignature'];\n};\n\n/**\n * Create the headers for the current request.\n *\n * @returns The headers for the current request.\n */\nexport type ClaimsServiceGetRequestHeadersAction = {\n type: `ClaimsService:getRequestHeaders`;\n handler: ClaimsService['getRequestHeaders'];\n};\n\n/**\n * Get the URL for the claims API for the current environment.\n *\n * @returns The URL for the claims API for the current environment.\n */\nexport type ClaimsServiceGetClaimsApiUrlAction = {\n type: `ClaimsService:getClaimsApiUrl`;\n handler: ClaimsService['getClaimsApiUrl'];\n};\n\n/**\n * Union of all ClaimsService action types.\n */\nexport type ClaimsServiceMethodActions =\n | ClaimsServiceFetchClaimsConfigurationsAction\n | ClaimsServiceGetClaimsAction\n | ClaimsServiceGetClaimByIdAction\n | ClaimsServiceGenerateMessageForClaimSignatureAction\n | ClaimsServiceGetRequestHeadersAction\n | ClaimsServiceGetClaimsApiUrlAction;\n"]}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GenerateSignatureMessageResponseStruct = exports.ClaimsConfigurationsResponseStruct = exports.ClaimStruct = void 0;
|
|
4
|
-
const superstruct_1 = require("@metamask/superstruct");
|
|
5
|
-
const constants_js_1 = require("./constants.cjs");
|
|
6
|
-
const HexStringStruct = (0, superstruct_1.string)();
|
|
7
|
-
const AttachmentStruct = (0, superstruct_1.type)({
|
|
8
|
-
publicUrl: (0, superstruct_1.string)(),
|
|
9
|
-
contentType: (0, superstruct_1.string)(),
|
|
10
|
-
originalname: (0, superstruct_1.string)(),
|
|
11
|
-
});
|
|
12
|
-
exports.ClaimStruct = (0, superstruct_1.type)({
|
|
13
|
-
id: (0, superstruct_1.string)(),
|
|
14
|
-
shortId: (0, superstruct_1.string)(),
|
|
15
|
-
chainId: (0, superstruct_1.string)(),
|
|
16
|
-
email: (0, superstruct_1.string)(),
|
|
17
|
-
impactedWalletAddress: HexStringStruct,
|
|
18
|
-
impactedTxHash: HexStringStruct,
|
|
19
|
-
reimbursementWalletAddress: HexStringStruct,
|
|
20
|
-
description: (0, superstruct_1.string)(),
|
|
21
|
-
signature: HexStringStruct,
|
|
22
|
-
attachments: (0, superstruct_1.optional)((0, superstruct_1.array)(AttachmentStruct)),
|
|
23
|
-
status: (0, superstruct_1.enums)(Object.values(constants_js_1.ClaimStatusEnum)),
|
|
24
|
-
createdAt: (0, superstruct_1.string)(),
|
|
25
|
-
updatedAt: (0, superstruct_1.string)(),
|
|
26
|
-
intercomId: (0, superstruct_1.optional)((0, superstruct_1.string)()),
|
|
27
|
-
});
|
|
28
|
-
exports.ClaimsConfigurationsResponseStruct = (0, superstruct_1.type)({
|
|
29
|
-
validSubmissionWindowDays: (0, superstruct_1.integer)(),
|
|
30
|
-
networks: (0, superstruct_1.array)((0, superstruct_1.integer)()),
|
|
31
|
-
});
|
|
32
|
-
exports.GenerateSignatureMessageResponseStruct = (0, superstruct_1.type)({
|
|
33
|
-
message: (0, superstruct_1.string)(),
|
|
34
|
-
nonce: (0, superstruct_1.string)(),
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=ClaimsService-structs.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-structs.cjs","sourceRoot":"","sources":["../src/ClaimsService-structs.ts"],"names":[],"mappings":";;;AAAA,uDAO+B;AAE/B,kDAAiD;AAEjD,MAAM,eAAe,GAAG,IAAA,oBAAM,GAAE,CAAC;AAEjC,MAAM,gBAAgB,GAAG,IAAA,kBAAI,EAAC;IAC5B,SAAS,EAAE,IAAA,oBAAM,GAAE;IACnB,WAAW,EAAE,IAAA,oBAAM,GAAE;IACrB,YAAY,EAAE,IAAA,oBAAM,GAAE;CACvB,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,IAAA,kBAAI,EAAC;IAC9B,EAAE,EAAE,IAAA,oBAAM,GAAE;IACZ,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,KAAK,EAAE,IAAA,oBAAM,GAAE;IACf,qBAAqB,EAAE,eAAe;IACtC,cAAc,EAAE,eAAe;IAC/B,0BAA0B,EAAE,eAAe;IAC3C,WAAW,EAAE,IAAA,oBAAM,GAAE;IACrB,SAAS,EAAE,eAAe;IAC1B,WAAW,EAAE,IAAA,sBAAQ,EAAC,IAAA,mBAAK,EAAC,gBAAgB,CAAC,CAAC;IAC9C,MAAM,EAAE,IAAA,mBAAK,EAAC,MAAM,CAAC,MAAM,CAAC,8BAAe,CAAC,CAAC;IAC7C,SAAS,EAAE,IAAA,oBAAM,GAAE;IACnB,SAAS,EAAE,IAAA,oBAAM,GAAE;IACnB,UAAU,EAAE,IAAA,sBAAQ,EAAC,IAAA,oBAAM,GAAE,CAAC;CAC/B,CAAC,CAAC;AAEU,QAAA,kCAAkC,GAAG,IAAA,kBAAI,EAAC;IACrD,yBAAyB,EAAE,IAAA,qBAAO,GAAE;IACpC,QAAQ,EAAE,IAAA,mBAAK,EAAC,IAAA,qBAAO,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEU,QAAA,sCAAsC,GAAG,IAAA,kBAAI,EAAC;IACzD,OAAO,EAAE,IAAA,oBAAM,GAAE;IACjB,KAAK,EAAE,IAAA,oBAAM,GAAE;CAChB,CAAC,CAAC","sourcesContent":["import {\n array,\n enums,\n integer,\n optional,\n string,\n type,\n} from '@metamask/superstruct';\n\nimport { ClaimStatusEnum } from './constants.js';\n\nconst HexStringStruct = string();\n\nconst AttachmentStruct = type({\n publicUrl: string(),\n contentType: string(),\n originalname: string(),\n});\n\nexport const ClaimStruct = type({\n id: string(),\n shortId: string(),\n chainId: string(),\n email: string(),\n impactedWalletAddress: HexStringStruct,\n impactedTxHash: HexStringStruct,\n reimbursementWalletAddress: HexStringStruct,\n description: string(),\n signature: HexStringStruct,\n attachments: optional(array(AttachmentStruct)),\n status: enums(Object.values(ClaimStatusEnum)),\n createdAt: string(),\n updatedAt: string(),\n intercomId: optional(string()),\n});\n\nexport const ClaimsConfigurationsResponseStruct = type({\n validSubmissionWindowDays: integer(),\n networks: array(integer()),\n});\n\nexport const GenerateSignatureMessageResponseStruct = type({\n message: string(),\n nonce: string(),\n});\n"]}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ClaimStatusEnum } from "./constants.cjs";
|
|
2
|
-
export declare const ClaimStruct: import("@metamask/superstruct").Struct<{
|
|
3
|
-
id: string;
|
|
4
|
-
shortId: string;
|
|
5
|
-
chainId: string;
|
|
6
|
-
email: string;
|
|
7
|
-
impactedWalletAddress: string;
|
|
8
|
-
impactedTxHash: string;
|
|
9
|
-
reimbursementWalletAddress: string;
|
|
10
|
-
description: string;
|
|
11
|
-
signature: string;
|
|
12
|
-
status: ClaimStatusEnum;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
attachments?: {
|
|
16
|
-
publicUrl: string;
|
|
17
|
-
contentType: string;
|
|
18
|
-
originalname: string;
|
|
19
|
-
}[] | undefined;
|
|
20
|
-
intercomId?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
id: import("@metamask/superstruct").Struct<string, null>;
|
|
23
|
-
shortId: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
chainId: import("@metamask/superstruct").Struct<string, null>;
|
|
25
|
-
email: import("@metamask/superstruct").Struct<string, null>;
|
|
26
|
-
impactedWalletAddress: import("@metamask/superstruct").Struct<string, null>;
|
|
27
|
-
impactedTxHash: import("@metamask/superstruct").Struct<string, null>;
|
|
28
|
-
reimbursementWalletAddress: import("@metamask/superstruct").Struct<string, null>;
|
|
29
|
-
description: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
-
signature: import("@metamask/superstruct").Struct<string, null>;
|
|
31
|
-
attachments: import("@metamask/superstruct").Struct<{
|
|
32
|
-
publicUrl: string;
|
|
33
|
-
contentType: string;
|
|
34
|
-
originalname: string;
|
|
35
|
-
}[] | undefined, import("@metamask/superstruct").Struct<{
|
|
36
|
-
publicUrl: string;
|
|
37
|
-
contentType: string;
|
|
38
|
-
originalname: string;
|
|
39
|
-
}, {
|
|
40
|
-
publicUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
41
|
-
contentType: import("@metamask/superstruct").Struct<string, null>;
|
|
42
|
-
originalname: import("@metamask/superstruct").Struct<string, null>;
|
|
43
|
-
}>>;
|
|
44
|
-
status: import("@metamask/superstruct").Struct<ClaimStatusEnum, {
|
|
45
|
-
created: ClaimStatusEnum.CREATED;
|
|
46
|
-
submitted: ClaimStatusEnum.SUBMITTED;
|
|
47
|
-
in_progress: ClaimStatusEnum.IN_PROGRESS;
|
|
48
|
-
waiting_for_customer: ClaimStatusEnum.WAITING_FOR_CUSTOMER;
|
|
49
|
-
approved: ClaimStatusEnum.APPROVED;
|
|
50
|
-
rejected: ClaimStatusEnum.REJECTED;
|
|
51
|
-
unknown: ClaimStatusEnum.UNKNOWN;
|
|
52
|
-
}>;
|
|
53
|
-
createdAt: import("@metamask/superstruct").Struct<string, null>;
|
|
54
|
-
updatedAt: import("@metamask/superstruct").Struct<string, null>;
|
|
55
|
-
intercomId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
56
|
-
}>;
|
|
57
|
-
export declare const ClaimsConfigurationsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
58
|
-
validSubmissionWindowDays: number;
|
|
59
|
-
networks: number[];
|
|
60
|
-
}, {
|
|
61
|
-
validSubmissionWindowDays: import("@metamask/superstruct").Struct<number, null>;
|
|
62
|
-
networks: import("@metamask/superstruct").Struct<number[], import("@metamask/superstruct").Struct<number, null>>;
|
|
63
|
-
}>;
|
|
64
|
-
export declare const GenerateSignatureMessageResponseStruct: import("@metamask/superstruct").Struct<{
|
|
65
|
-
message: string;
|
|
66
|
-
nonce: string;
|
|
67
|
-
}, {
|
|
68
|
-
message: import("@metamask/superstruct").Struct<string, null>;
|
|
69
|
-
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
70
|
-
}>;
|
|
71
|
-
//# sourceMappingURL=ClaimsService-structs.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-structs.d.cts","sourceRoot":"","sources":["../src/ClaimsService-structs.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,wBAAuB;AAUjD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;EAG7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;EAGjD,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ClaimStatusEnum } from "./constants.mjs";
|
|
2
|
-
export declare const ClaimStruct: import("@metamask/superstruct").Struct<{
|
|
3
|
-
id: string;
|
|
4
|
-
shortId: string;
|
|
5
|
-
chainId: string;
|
|
6
|
-
email: string;
|
|
7
|
-
impactedWalletAddress: string;
|
|
8
|
-
impactedTxHash: string;
|
|
9
|
-
reimbursementWalletAddress: string;
|
|
10
|
-
description: string;
|
|
11
|
-
signature: string;
|
|
12
|
-
status: ClaimStatusEnum;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
|
-
attachments?: {
|
|
16
|
-
publicUrl: string;
|
|
17
|
-
contentType: string;
|
|
18
|
-
originalname: string;
|
|
19
|
-
}[] | undefined;
|
|
20
|
-
intercomId?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
id: import("@metamask/superstruct").Struct<string, null>;
|
|
23
|
-
shortId: import("@metamask/superstruct").Struct<string, null>;
|
|
24
|
-
chainId: import("@metamask/superstruct").Struct<string, null>;
|
|
25
|
-
email: import("@metamask/superstruct").Struct<string, null>;
|
|
26
|
-
impactedWalletAddress: import("@metamask/superstruct").Struct<string, null>;
|
|
27
|
-
impactedTxHash: import("@metamask/superstruct").Struct<string, null>;
|
|
28
|
-
reimbursementWalletAddress: import("@metamask/superstruct").Struct<string, null>;
|
|
29
|
-
description: import("@metamask/superstruct").Struct<string, null>;
|
|
30
|
-
signature: import("@metamask/superstruct").Struct<string, null>;
|
|
31
|
-
attachments: import("@metamask/superstruct").Struct<{
|
|
32
|
-
publicUrl: string;
|
|
33
|
-
contentType: string;
|
|
34
|
-
originalname: string;
|
|
35
|
-
}[] | undefined, import("@metamask/superstruct").Struct<{
|
|
36
|
-
publicUrl: string;
|
|
37
|
-
contentType: string;
|
|
38
|
-
originalname: string;
|
|
39
|
-
}, {
|
|
40
|
-
publicUrl: import("@metamask/superstruct").Struct<string, null>;
|
|
41
|
-
contentType: import("@metamask/superstruct").Struct<string, null>;
|
|
42
|
-
originalname: import("@metamask/superstruct").Struct<string, null>;
|
|
43
|
-
}>>;
|
|
44
|
-
status: import("@metamask/superstruct").Struct<ClaimStatusEnum, {
|
|
45
|
-
created: ClaimStatusEnum.CREATED;
|
|
46
|
-
submitted: ClaimStatusEnum.SUBMITTED;
|
|
47
|
-
in_progress: ClaimStatusEnum.IN_PROGRESS;
|
|
48
|
-
waiting_for_customer: ClaimStatusEnum.WAITING_FOR_CUSTOMER;
|
|
49
|
-
approved: ClaimStatusEnum.APPROVED;
|
|
50
|
-
rejected: ClaimStatusEnum.REJECTED;
|
|
51
|
-
unknown: ClaimStatusEnum.UNKNOWN;
|
|
52
|
-
}>;
|
|
53
|
-
createdAt: import("@metamask/superstruct").Struct<string, null>;
|
|
54
|
-
updatedAt: import("@metamask/superstruct").Struct<string, null>;
|
|
55
|
-
intercomId: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
56
|
-
}>;
|
|
57
|
-
export declare const ClaimsConfigurationsResponseStruct: import("@metamask/superstruct").Struct<{
|
|
58
|
-
validSubmissionWindowDays: number;
|
|
59
|
-
networks: number[];
|
|
60
|
-
}, {
|
|
61
|
-
validSubmissionWindowDays: import("@metamask/superstruct").Struct<number, null>;
|
|
62
|
-
networks: import("@metamask/superstruct").Struct<number[], import("@metamask/superstruct").Struct<number, null>>;
|
|
63
|
-
}>;
|
|
64
|
-
export declare const GenerateSignatureMessageResponseStruct: import("@metamask/superstruct").Struct<{
|
|
65
|
-
message: string;
|
|
66
|
-
nonce: string;
|
|
67
|
-
}, {
|
|
68
|
-
message: import("@metamask/superstruct").Struct<string, null>;
|
|
69
|
-
nonce: import("@metamask/superstruct").Struct<string, null>;
|
|
70
|
-
}>;
|
|
71
|
-
//# sourceMappingURL=ClaimsService-structs.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-structs.d.mts","sourceRoot":"","sources":["../src/ClaimsService-structs.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,wBAAuB;AAUjD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;EAG7C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;EAGjD,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { array, enums, integer, optional, string, type } from "@metamask/superstruct";
|
|
2
|
-
import { ClaimStatusEnum } from "./constants.mjs";
|
|
3
|
-
const HexStringStruct = string();
|
|
4
|
-
const AttachmentStruct = type({
|
|
5
|
-
publicUrl: string(),
|
|
6
|
-
contentType: string(),
|
|
7
|
-
originalname: string(),
|
|
8
|
-
});
|
|
9
|
-
export const ClaimStruct = type({
|
|
10
|
-
id: string(),
|
|
11
|
-
shortId: string(),
|
|
12
|
-
chainId: string(),
|
|
13
|
-
email: string(),
|
|
14
|
-
impactedWalletAddress: HexStringStruct,
|
|
15
|
-
impactedTxHash: HexStringStruct,
|
|
16
|
-
reimbursementWalletAddress: HexStringStruct,
|
|
17
|
-
description: string(),
|
|
18
|
-
signature: HexStringStruct,
|
|
19
|
-
attachments: optional(array(AttachmentStruct)),
|
|
20
|
-
status: enums(Object.values(ClaimStatusEnum)),
|
|
21
|
-
createdAt: string(),
|
|
22
|
-
updatedAt: string(),
|
|
23
|
-
intercomId: optional(string()),
|
|
24
|
-
});
|
|
25
|
-
export const ClaimsConfigurationsResponseStruct = type({
|
|
26
|
-
validSubmissionWindowDays: integer(),
|
|
27
|
-
networks: array(integer()),
|
|
28
|
-
});
|
|
29
|
-
export const GenerateSignatureMessageResponseStruct = type({
|
|
30
|
-
message: string(),
|
|
31
|
-
nonce: string(),
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=ClaimsService-structs.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ClaimsService-structs.mjs","sourceRoot":"","sources":["../src/ClaimsService-structs.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,IAAI,EACL,8BAA8B;AAE/B,OAAO,EAAE,eAAe,EAAE,wBAAuB;AAEjD,MAAM,eAAe,GAAG,MAAM,EAAE,CAAC;AAEjC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IAC5B,SAAS,EAAE,MAAM,EAAE;IACnB,WAAW,EAAE,MAAM,EAAE;IACrB,YAAY,EAAE,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,EAAE,EAAE,MAAM,EAAE;IACZ,OAAO,EAAE,MAAM,EAAE;IACjB,OAAO,EAAE,MAAM,EAAE;IACjB,KAAK,EAAE,MAAM,EAAE;IACf,qBAAqB,EAAE,eAAe;IACtC,cAAc,EAAE,eAAe;IAC/B,0BAA0B,EAAE,eAAe;IAC3C,WAAW,EAAE,MAAM,EAAE;IACrB,SAAS,EAAE,eAAe;IAC1B,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAC9C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;IAC7C,SAAS,EAAE,MAAM,EAAE;IACnB,SAAS,EAAE,MAAM,EAAE;IACnB,UAAU,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,IAAI,CAAC;IACrD,yBAAyB,EAAE,OAAO,EAAE;IACpC,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sCAAsC,GAAG,IAAI,CAAC;IACzD,OAAO,EAAE,MAAM,EAAE;IACjB,KAAK,EAAE,MAAM,EAAE;CAChB,CAAC,CAAC","sourcesContent":["import {\n array,\n enums,\n integer,\n optional,\n string,\n type,\n} from '@metamask/superstruct';\n\nimport { ClaimStatusEnum } from './constants.js';\n\nconst HexStringStruct = string();\n\nconst AttachmentStruct = type({\n publicUrl: string(),\n contentType: string(),\n originalname: string(),\n});\n\nexport const ClaimStruct = type({\n id: string(),\n shortId: string(),\n chainId: string(),\n email: string(),\n impactedWalletAddress: HexStringStruct,\n impactedTxHash: HexStringStruct,\n reimbursementWalletAddress: HexStringStruct,\n description: string(),\n signature: HexStringStruct,\n attachments: optional(array(AttachmentStruct)),\n status: enums(Object.values(ClaimStatusEnum)),\n createdAt: string(),\n updatedAt: string(),\n intercomId: optional(string()),\n});\n\nexport const ClaimsConfigurationsResponseStruct = type({\n validSubmissionWindowDays: integer(),\n networks: array(integer()),\n});\n\nexport const GenerateSignatureMessageResponseStruct = type({\n message: string(),\n nonce: string(),\n});\n"]}
|