@explorins/pers-sdk 2.1.11 → 2.1.15

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.
Files changed (119) hide show
  1. package/dist/business/api/business-membership-api.d.ts +2 -2
  2. package/dist/chunks/{index-B-g2JPVK.cjs → index-CGaKfZNU.cjs} +279 -1
  3. package/dist/chunks/index-CGaKfZNU.cjs.map +1 -0
  4. package/dist/chunks/{index-CKm_V5XE.js → index-DgTEdUgC.js} +277 -2
  5. package/dist/chunks/index-DgTEdUgC.js.map +1 -0
  6. package/dist/chunks/{pers-sdk-CJo4CCTG.js → pers-sdk-BiP7UMJ3.js} +1695 -180
  7. package/dist/chunks/pers-sdk-BiP7UMJ3.js.map +1 -0
  8. package/dist/chunks/{pers-sdk-Bheg5mKX.cjs → pers-sdk-Cv7hM1I7.cjs} +1701 -180
  9. package/dist/chunks/pers-sdk-Cv7hM1I7.cjs.map +1 -0
  10. package/dist/chunks/tenant-manager-BUiFM33X.cjs +157 -0
  11. package/dist/chunks/tenant-manager-BUiFM33X.cjs.map +1 -0
  12. package/dist/chunks/tenant-manager-Bbj0bKoo.js +155 -0
  13. package/dist/chunks/tenant-manager-Bbj0bKoo.js.map +1 -0
  14. package/dist/chunks/{transaction-request.builder-DGTxGvc3.js → transaction-request.builder-C3C19kCx.js} +23 -2
  15. package/dist/chunks/{transaction-request.builder-DGTxGvc3.js.map → transaction-request.builder-C3C19kCx.js.map} +1 -1
  16. package/dist/chunks/{transaction-request.builder-Bjxi0C9F.cjs → transaction-request.builder-CW3Wwdi3.cjs} +23 -1
  17. package/dist/chunks/{transaction-request.builder-Bjxi0C9F.cjs.map → transaction-request.builder-CW3Wwdi3.cjs.map} +1 -1
  18. package/dist/chunks/{web3-chain-service-D68-0WaW.cjs → web3-chain-service-DcLiy3m2.cjs} +7 -7
  19. package/dist/chunks/{web3-chain-service-D68-0WaW.cjs.map → web3-chain-service-DcLiy3m2.cjs.map} +1 -1
  20. package/dist/chunks/{web3-chain-service-DuvxmKSj.js → web3-chain-service-nGntR60S.js} +3 -3
  21. package/dist/chunks/{web3-chain-service-DuvxmKSj.js.map → web3-chain-service-nGntR60S.js.map} +1 -1
  22. package/dist/chunks/{web3-manager-C_cFaMCm.cjs → web3-manager-B0OyjqJR.cjs} +89 -93
  23. package/dist/chunks/web3-manager-B0OyjqJR.cjs.map +1 -0
  24. package/dist/chunks/{web3-manager-OExwBWB7.js → web3-manager-Bnsvcz3Q.js} +89 -93
  25. package/dist/chunks/web3-manager-Bnsvcz3Q.js.map +1 -0
  26. package/dist/core/events/event-emitter.d.ts.map +1 -1
  27. package/dist/core/pers-config.d.ts +19 -0
  28. package/dist/core/pers-config.d.ts.map +1 -1
  29. package/dist/core.cjs +17 -14
  30. package/dist/core.cjs.map +1 -1
  31. package/dist/core.js +5 -5
  32. package/dist/events/index.d.ts +13 -0
  33. package/dist/events/index.d.ts.map +1 -0
  34. package/dist/events/pers-events-client.d.ts +143 -0
  35. package/dist/events/pers-events-client.d.ts.map +1 -0
  36. package/dist/events/types.d.ts +37 -0
  37. package/dist/events/types.d.ts.map +1 -0
  38. package/dist/index.cjs +41 -13
  39. package/dist/index.cjs.map +1 -1
  40. package/dist/index.d.ts +2 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +5 -5
  43. package/dist/managers/events-manager.d.ts +179 -0
  44. package/dist/managers/events-manager.d.ts.map +1 -0
  45. package/dist/managers/index.d.ts +2 -0
  46. package/dist/managers/index.d.ts.map +1 -1
  47. package/dist/managers/tenant-manager.d.ts +42 -1
  48. package/dist/managers/tenant-manager.d.ts.map +1 -1
  49. package/dist/managers/web3-manager.d.ts +12 -14
  50. package/dist/managers/web3-manager.d.ts.map +1 -1
  51. package/dist/managers/webhook-manager.d.ts +237 -0
  52. package/dist/managers/webhook-manager.d.ts.map +1 -0
  53. package/dist/node.cjs +4 -3
  54. package/dist/node.cjs.map +1 -1
  55. package/dist/node.js +4 -3
  56. package/dist/node.js.map +1 -1
  57. package/dist/package.json +3 -2
  58. package/dist/pers-sdk.d.ts +110 -1
  59. package/dist/pers-sdk.d.ts.map +1 -1
  60. package/dist/transaction/index.d.ts +1 -1
  61. package/dist/transaction/index.d.ts.map +1 -1
  62. package/dist/transaction/models/transaction-request.builder.d.ts +16 -0
  63. package/dist/transaction/models/transaction-request.builder.d.ts.map +1 -1
  64. package/dist/transaction.cjs +2 -1
  65. package/dist/transaction.cjs.map +1 -1
  66. package/dist/transaction.js +1 -1
  67. package/dist/web3/application/web3-application.service.d.ts +6 -3
  68. package/dist/web3/application/web3-application.service.d.ts.map +1 -1
  69. package/dist/web3/domain/services/metadata-domain.service.d.ts +4 -2
  70. package/dist/web3/domain/services/metadata-domain.service.d.ts.map +1 -1
  71. package/dist/web3/domain/services/token-domain.service.d.ts +7 -3
  72. package/dist/web3/domain/services/token-domain.service.d.ts.map +1 -1
  73. package/dist/web3/infrastructure/api/ipfs-api.d.ts +22 -9
  74. package/dist/web3/infrastructure/api/ipfs-api.d.ts.map +1 -1
  75. package/dist/web3/utils/explorer.utils.d.ts +3 -3
  76. package/dist/web3/utils/explorer.utils.d.ts.map +1 -1
  77. package/dist/web3-chain/api/web3-chain-api.d.ts +3 -2
  78. package/dist/web3-chain/api/web3-chain-api.d.ts.map +1 -1
  79. package/dist/web3-chain/index.d.ts +0 -1
  80. package/dist/web3-chain/index.d.ts.map +1 -1
  81. package/dist/web3-chain/models/index.d.ts +5 -23
  82. package/dist/web3-chain/models/index.d.ts.map +1 -1
  83. package/dist/web3-chain/services/web3-chain-service.d.ts +2 -2
  84. package/dist/web3-chain/services/web3-chain-service.d.ts.map +1 -1
  85. package/dist/web3-chain.cjs +8 -14
  86. package/dist/web3-chain.cjs.map +1 -1
  87. package/dist/web3-chain.js +3 -16
  88. package/dist/web3-chain.js.map +1 -1
  89. package/dist/web3-manager.cjs +7 -4
  90. package/dist/web3-manager.cjs.map +1 -1
  91. package/dist/web3-manager.js +7 -4
  92. package/dist/web3-manager.js.map +1 -1
  93. package/dist/web3.cjs +7 -4
  94. package/dist/web3.cjs.map +1 -1
  95. package/dist/web3.js +7 -4
  96. package/dist/web3.js.map +1 -1
  97. package/dist/webhook/api/index.d.ts +2 -0
  98. package/dist/webhook/api/index.d.ts.map +1 -0
  99. package/dist/webhook/api/webhook-api.d.ts +73 -0
  100. package/dist/webhook/api/webhook-api.d.ts.map +1 -0
  101. package/dist/webhook/index.d.ts +35 -0
  102. package/dist/webhook/index.d.ts.map +1 -0
  103. package/dist/webhook/models/index.d.ts +58 -0
  104. package/dist/webhook/models/index.d.ts.map +1 -0
  105. package/dist/webhook/services/index.d.ts +2 -0
  106. package/dist/webhook/services/index.d.ts.map +1 -0
  107. package/dist/webhook/services/webhook-service.d.ts +98 -0
  108. package/dist/webhook/services/webhook-service.d.ts.map +1 -0
  109. package/package.json +3 -2
  110. package/dist/chunks/index-B-g2JPVK.cjs.map +0 -1
  111. package/dist/chunks/index-B6-bbNnd.cjs +0 -281
  112. package/dist/chunks/index-B6-bbNnd.cjs.map +0 -1
  113. package/dist/chunks/index-CKm_V5XE.js.map +0 -1
  114. package/dist/chunks/index-DBLskLuH.js +0 -277
  115. package/dist/chunks/index-DBLskLuH.js.map +0 -1
  116. package/dist/chunks/pers-sdk-Bheg5mKX.cjs.map +0 -1
  117. package/dist/chunks/pers-sdk-CJo4CCTG.js.map +0 -1
  118. package/dist/chunks/web3-manager-C_cFaMCm.cjs.map +0 -1
  119. package/dist/chunks/web3-manager-OExwBWB7.js.map +0 -1
@@ -1,7 +1,8 @@
1
1
  import { PersApiClient } from '../core/pers-api-client';
2
2
  import { Web3ApplicationService } from '../web3/application/web3-application.service';
3
+ import { TenantManager } from './tenant-manager';
3
4
  import type { TokenBalanceRequest, TokenCollectionRequest, TokenBalance, TokenCollection, TokenMetadata, AccountOwnedTokensResult } from '../web3/application/web3-application.service';
4
- import type { ChainData } from '../web3-chain';
5
+ import type { ChainDataDTO } from '@explorins/pers-shared';
5
6
  import type { TokenDTO } from '../token/models';
6
7
  /**
7
8
  * Web3 Manager - Clean, high-level interface for Web3 operations
@@ -39,12 +40,18 @@ import type { TokenDTO } from '../token/models';
39
40
  * tokenIds // Required for ERC-1155, optional for ERC-721
40
41
  * });
41
42
  * ```
43
+ *
44
+ * ## IPFS Resolution
45
+ *
46
+ * For IPFS URL resolution, use `sdk.tenant.resolveIPFSUrl()` instead.
47
+ * IPFS is chain-agnostic and configured at the tenant level.
42
48
  */
43
49
  export declare class Web3Manager {
44
50
  private apiClient;
45
51
  private web3ApplicationService;
46
52
  private web3ChainService;
47
- constructor(apiClient: PersApiClient);
53
+ private tenantManager;
54
+ constructor(apiClient: PersApiClient, tenantManager?: TenantManager);
48
55
  /**
49
56
  * Get token balance for a specific token
50
57
  *
@@ -66,29 +73,20 @@ export declare class Web3Manager {
66
73
  * @returns Promise resolving to token collection
67
74
  */
68
75
  getTokenCollection(request: TokenCollectionRequest): Promise<TokenCollection>;
69
- /**
70
- * Resolve IPFS URL to accessible URL
71
- *
72
- * @param url - IPFS URL to resolve
73
- * @param chainId - Chain ID for context
74
- * @returns Promise resolving to accessible URL
75
- */
76
- resolveIPFSUrl(url: string, chainId: number): Promise<string>;
77
76
  /**
78
77
  * Fetch and process token metadata
79
78
  *
80
79
  * @param tokenUri - Token URI to fetch metadata from
81
- * @param chainId - Chain ID for context
82
80
  * @returns Promise resolving to processed metadata or null if not found
83
81
  */
84
- fetchAndProcessMetadata(tokenUri: string, chainId: number): Promise<TokenMetadata | null>;
82
+ fetchAndProcessMetadata(tokenUri: string): Promise<TokenMetadata | null>;
85
83
  /**
86
84
  * Get blockchain chain data by chain ID
87
85
  *
88
86
  * @param chainId - Chain ID to get data for
89
87
  * @returns Promise resolving to chain data or null if not found
90
88
  */
91
- getChainDataById(chainId: number): Promise<ChainData | null>;
89
+ getChainDataById(chainId: number): Promise<ChainDataDTO | null>;
92
90
  /**
93
91
  * Get explorer URL for a given address or transaction
94
92
  *
@@ -150,7 +148,7 @@ export declare class Web3Manager {
150
148
  *
151
149
  * @param accountAddress - Any valid blockchain address (wallet, contract, etc.)
152
150
  * @param token - Token definition (from getRewardTokens, getStatusTokens, etc.)
153
- * @param maxTokens - Maximum tokens to retrieve (default: 50)
151
+ * @param maxTokens - Maximum tokens to retrieve (default: 100, max: 100)
154
152
  * @returns Promise resolving to collection result with owned tokens
155
153
  *
156
154
  * @example Query user's wallet
@@ -1 +1 @@
1
- {"version":3,"file":"web3-manager.d.ts","sourceRoot":"","sources":["../../src/managers/web3-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AAItF,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,wBAAwB,EACzB,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBAAa,WAAW;IAYV,OAAO,CAAC,SAAS;IAX7B,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,gBAAgB,CAAmB;gBAUvB,SAAS,EAAE,aAAa;IAW5C;;;;;OAKG;IACG,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,YAAY,CAAC;IAI1E;;;;;OAKG;IACG,gBAAgB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;IAInF;;;;;OAKG;IACG,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAInF;;;;;;OAMG;IACG,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,M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Q,EACf,SAAS,GAAE,MAAY,GACtB,OAAO,CAAC,wBAAwB,CAAC;IAiCpC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,sBAAsB,CACpB,cAAc,EAAE,MAAM,EACtB,KAAK,EAAE,QAAQ,EACf,SAAS,GAAE,MAAW,GACrB,sBAAsB;CAU1B"}
@@ -0,0 +1,237 @@
1
+ import { PaginatedResponseDTO, WebhookDTO, WebhookCreateRequestDTO, WebhookUpdateRequestDTO, WebhookExecutionDTO, WebhookTriggerResponseDTO } from '@explorins/pers-shared';
2
+ import { PersApiClient } from '../core/pers-api-client';
3
+ import { PersEventEmitter } from '../core/events';
4
+ import { WebhookService, WebhookQueryOptions, WebhookExecutionQueryOptions } from '../webhook';
5
+ /**
6
+ * Webhook Manager - Clean, high-level interface for webhook operations
7
+ *
8
+ * Webhooks enable integration with external systems (n8n, Zapier, custom backends):
9
+ * - **Admin operations**: Create, configure, and manage webhook endpoints
10
+ * - **Trigger operations**: Programmatically trigger webhooks with payloads
11
+ * - **Async workflows**: Wait for callbacks from workflow systems
12
+ * - **Monitoring**: Track execution history
13
+ *
14
+ * ## Security Model
15
+ * - Admin endpoints require tenant authentication
16
+ * - Trigger endpoints work with user/business/tenant auth
17
+ * - Caller identity is passed to webhook target
18
+ *
19
+ * @group Managers
20
+ * @category Webhook Management
21
+ *
22
+ * @example Basic Webhook Operations
23
+ * ```typescript
24
+ * // Admin: Create a webhook for order processing
25
+ * const webhook = await sdk.webhooks.create({
26
+ * name: 'Process Order',
27
+ * targetUrl: 'https://n8n.example.com/webhook/orders',
28
+ * method: 'POST',
29
+ * headers: { 'X-Custom-Header': 'value' }
30
+ * });
31
+ *
32
+ * // Trigger webhook with order data
33
+ * const result = await sdk.webhooks.trigger(webhook.id, {
34
+ * orderId: 'order-123',
35
+ * items: [{ productId: 'prod-1', quantity: 2 }]
36
+ * });
37
+ *
38
+ * console.log('Execution ID:', result.executionId);
39
+ * ```
40
+ *
41
+ * @example Async Workflow with Callback
42
+ * ```typescript
43
+ * // Trigger and wait for workflow completion (up to 30s)
44
+ * const result = await sdk.webhooks.triggerAndWait(
45
+ * 'ai-processing-webhook',
46
+ * { prompt: 'Generate report for Q1' },
47
+ * 30000
48
+ * );
49
+ *
50
+ * if (result.status === 'COMPLETED') {
51
+ * console.log('AI Response:', result.body);
52
+ * }
53
+ * ```
54
+ */
55
+ export declare class WebhookManager {
56
+ private apiClient;
57
+ private projectKey;
58
+ private events?;
59
+ private webhookService;
60
+ constructor(apiClient: PersApiClient, projectKey: string, events?: PersEventEmitter | undefined);
61
+ /**
62
+ * Get all webhooks with optional filters (Admin)
63
+ *
64
+ * @param options - Filter and pagination options
65
+ * @returns Promise resolving to paginated webhooks
66
+ *
67
+ * @example
68
+ * ```typescript
69
+ * // Get all webhooks
70
+ * const webhooks = await sdk.webhooks.getAll();
71
+ *
72
+ * // Get only active webhooks
73
+ * const active = await sdk.webhooks.getAll({ active: true });
74
+ *
75
+ * // Search by name
76
+ * const found = await sdk.webhooks.getAll({ search: 'order' });
77
+ * ```
78
+ */
79
+ getAll(options?: WebhookQueryOptions): Promise<PaginatedResponseDTO<WebhookDTO>>;
80
+ /**
81
+ * Get active webhooks only (Admin)
82
+ */
83
+ getActive(): Promise<PaginatedResponseDTO<WebhookDTO>>;
84
+ /**
85
+ * Get webhook by ID (Admin)
86
+ *
87
+ * @param webhookId - UUID of the webhook
88
+ * @returns Promise resolving to webhook details
89
+ */
90
+ getById(webhookId: string): Promise<WebhookDTO>;
91
+ /**
92
+ * Create a new webhook (Admin)
93
+ *
94
+ * @param webhook - Webhook configuration
95
+ * @returns Promise resolving to created webhook
96
+ *
97
+ * @example
98
+ * ```typescript
99
+ * const webhook = await sdk.webhooks.create({
100
+ * name: 'Order Notifications',
101
+ * targetUrl: 'https://api.example.com/webhooks/orders',
102
+ * method: 'POST',
103
+ * headers: {
104
+ * 'Authorization': 'Bearer secret-token'
105
+ * },
106
+ * rateLimitPerMinute: 60
107
+ * });
108
+ * ```
109
+ */
110
+ create(webhook: WebhookCreateRequestDTO): Promise<WebhookDTO>;
111
+ /**
112
+ * Update a webhook (Admin)
113
+ *
114
+ * @param webhookId - UUID of the webhook to update
115
+ * @param webhook - Updated configuration (partial)
116
+ * @returns Promise resolving to updated webhook
117
+ */
118
+ update(webhookId: string, webhook: WebhookUpdateRequestDTO): Promise<WebhookDTO>;
119
+ /**
120
+ * Enable a webhook (Admin)
121
+ */
122
+ enable(webhookId: string): Promise<WebhookDTO>;
123
+ /**
124
+ * Disable a webhook (Admin)
125
+ */
126
+ disable(webhookId: string): Promise<WebhookDTO>;
127
+ /**
128
+ * Delete a webhook (Admin)
129
+ *
130
+ * @param webhookId - UUID of the webhook to delete
131
+ * @returns Promise resolving to deletion confirmation
132
+ */
133
+ delete(webhookId: string): Promise<{
134
+ message: string;
135
+ hookId: string;
136
+ }>;
137
+ /**
138
+ * Trigger a webhook with GET method
139
+ *
140
+ * Sends a GET request through the webhook proxy. Returns the full response
141
+ * including execution metadata and raw data from the target.
142
+ *
143
+ * @param hookId - Webhook ID to trigger
144
+ * @param queryParams - Optional query parameters
145
+ * @returns Promise resolving to trigger response with metadata and data
146
+ *
147
+ * @example
148
+ * ```typescript
149
+ * // Fetch data from external API via webhook proxy
150
+ * const result = await sdk.webhooks.get('user-directory-webhook');
151
+ * console.log('Success:', result.success);
152
+ * console.log('Data:', result.data); // Raw data from target
153
+ * ```
154
+ */
155
+ get(hookId: string, queryParams?: Record<string, string>): Promise<WebhookTriggerResponseDTO>;
156
+ /**
157
+ * Trigger a webhook with POST method
158
+ *
159
+ * Sends data to the configured webhook target. The caller's identity
160
+ * (user/business/tenant) is included in the request context.
161
+ *
162
+ * @param hookId - Webhook ID to trigger
163
+ * @param body - Payload to send
164
+ * @returns Promise resolving to trigger response with execution metadata
165
+ *
166
+ * @example
167
+ * ```typescript
168
+ * const result = await sdk.webhooks.trigger('order-webhook', {
169
+ * orderId: 'order-123',
170
+ * action: 'created',
171
+ * items: [...]
172
+ * });
173
+ *
174
+ * console.log('Success:', result.success);
175
+ * console.log('Execution ID:', result.executionId);
176
+ * console.log('Response:', result.data);
177
+ * ```
178
+ */
179
+ trigger(hookId: string, body: unknown): Promise<WebhookTriggerResponseDTO>;
180
+ /**
181
+ * Trigger a webhook and wait for async callback
182
+ *
183
+ * Use this for workflow systems (n8n, Zapier) that need time to process
184
+ * and return results via callback. The SDK will wait for the callback
185
+ * up to the specified timeout.
186
+ *
187
+ * @param hookId - Webhook ID to trigger
188
+ * @param body - Payload to send
189
+ * @param timeoutMs - Max time to wait for callback (default: 30s)
190
+ * @returns Promise resolving when callback received or timeout
191
+ *
192
+ * @example
193
+ * ```typescript
194
+ * // Trigger AI workflow and wait for result
195
+ * const result = await sdk.webhooks.triggerAndWait(
196
+ * 'ai-analysis-webhook',
197
+ * { documentId: 'doc-123', analysisType: 'sentiment' },
198
+ * 60000 // Wait up to 60 seconds
199
+ * );
200
+ *
201
+ * if (result.success) {
202
+ * console.log('Analysis:', result.data);
203
+ * }
204
+ * ```
205
+ */
206
+ triggerAndWait(hookId: string, body: unknown, timeoutMs?: number): Promise<WebhookTriggerResponseDTO>;
207
+ /**
208
+ * Get webhook execution history (Admin)
209
+ *
210
+ * @param options - Filter and pagination options
211
+ * @returns Promise resolving to paginated executions
212
+ *
213
+ * @example
214
+ * ```typescript
215
+ * // Get recent failed executions
216
+ * const failed = await sdk.webhooks.getExecutions({ status: 'FAILED' });
217
+ *
218
+ * // Get executions for specific webhook
219
+ * const executions = await sdk.webhooks.getExecutions({
220
+ * webhookId: 'webhook-123',
221
+ * fromDate: '2024-01-01'
222
+ * });
223
+ * ```
224
+ */
225
+ getExecutions(options?: WebhookExecutionQueryOptions): Promise<PaginatedResponseDTO<WebhookExecutionDTO>>;
226
+ /**
227
+ * Get execution details by ID (Admin)
228
+ */
229
+ getExecutionById(executionId: string): Promise<WebhookExecutionDTO>;
230
+ /**
231
+ * Get the full webhook service for advanced operations
232
+ *
233
+ * @returns WebhookService instance with full API access
234
+ */
235
+ getWebhookService(): WebhookService;
236
+ }
237
+ //# sourceMappingURL=webhook-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook-manager.d.ts","sourceRoot":"","sources":["../../src/managers/webhook-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,EACnB,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEL,cAAc,EACd,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,qBAAa,cAAc;IAIvB,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,MAAM,CAAC;IALjB,OAAO,CAAC,cAAc,CAAiB;gBAG7B,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,MAAM,EAClB,MAAM,CAAC,8BAAkB;IAUnC;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAItF;;OAEG;IACG,SAAS,IAAI,OAAO,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAI5D;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD;;;;;;;;;;;;;;;;;;OAkBG;IACG,MAAM,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAanE;;;;;;OAMG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAatF;;OAEG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAIpD;;OAEG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAIrD;;;;;OAKG;IACG,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAiB7E;;;;;;;;;;;;;;;;;OAiBG;IACG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAInG;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACG,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAahF;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,cAAc,CAClB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,OAAO,EACb,SAAS,GAAE,MAAc,GACxB,OAAO,CAAC,yBAAyB,CAAC;IAQrC;;;;;;;;;;;;;;;;;OAiBG;IACG,aAAa,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,CAAC;IAI/G;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIzE;;;;OAIG;IACH,iBAAiB,IAAI,cAAc;CAGpC"}
package/dist/node.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var persSdk = require('./chunks/pers-sdk-Bheg5mKX.cjs');
3
+ var persSdk = require('./chunks/pers-sdk-Cv7hM1I7.cjs');
4
4
  var persShared = require('@explorins/pers-shared');
5
5
  var nodeHttpClient = require('./chunks/node-http-client-D_avaa5F.cjs');
6
- require('./chunks/index-B-g2JPVK.cjs');
6
+ require('./chunks/index-CGaKfZNU.cjs');
7
7
  require('./user.cjs');
8
8
  require('./chunks/pagination-utils-B2jRHMSO.cjs');
9
9
  require('./user-status.cjs');
@@ -11,8 +11,9 @@ require('./chunks/token-service-C1xe11OX.cjs');
11
11
  require('./chunks/business-membership-service-BfHzIQlc.cjs');
12
12
  require('./campaign.cjs');
13
13
  require('./chunks/redemption-service-C61Qr2vI.cjs');
14
- require('./chunks/transaction-request.builder-Bjxi0C9F.cjs');
14
+ require('./chunks/transaction-request.builder-CW3Wwdi3.cjs');
15
15
  require('./chunks/payment-service-Bkw7ZXev.cjs');
16
+ require('./chunks/tenant-manager-BUiFM33X.cjs');
16
17
  require('./chunks/tenant-service-fj-pkXTw.cjs');
17
18
  require('./chunks/analytics-service-CF9AsMQH.cjs');
18
19
  require('./donation.cjs');
package/dist/node.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.cjs","sources":["../src/node.ts"],"sourcesContent":[null],"names":["NodeHttpClientAdapter","StaticJwtAuthProvider","AccountOwnerType","PersSDK"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAQH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACG,SAAU,aAAa,CAAC,OAK7B,EAAA;AACC,IAAA,MAAM,UAAU,GAAG,IAAIA,oCAAqB,EAAE;AAC9C,IAAA,MAAM,YAAY,GAAG,IAAIC,6BAAqB,CAAC;QAC7C,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,UAAU,EAAE,OAAO,CAAC,UAAU;AAC9B,QAAA,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAIC,2BAAgB,CAAC;AAChD,KAAA,CAAC;AAEF,IAAA,OAAO,IAAIC,eAAO,CAAC,UAAU,EAAE;AAC7B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,YAAY;QAChD,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC;AACD,KAAA,CAAC;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"node.cjs","sources":["../src/node.ts"],"sourcesContent":[null],"names":["NodeHttpClientAdapter","StaticJwtAuthProvider","AccountOwnerType","PersSDK"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAQH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACG,SAAU,aAAa,CAAC,OAK7B,EAAA;AACC,IAAA,MAAM,UAAU,GAAG,IAAIA,oCAAqB,EAAE;AAC9C,IAAA,MAAM,YAAY,GAAG,IAAIC,6BAAqB,CAAC;QAC7C,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,UAAU,EAAE,OAAO,CAAC,UAAU;AAC9B,QAAA,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAIC,2BAAgB,CAAC;AAChD,KAAA,CAAC;AAEF,IAAA,OAAO,IAAIC,eAAO,CAAC,UAAU,EAAE;AAC7B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,YAAY;QAChD,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC;AACD,KAAA,CAAC;AACJ;;;;;;;;;"}
package/dist/node.js CHANGED
@@ -1,8 +1,8 @@
1
- import { j as StaticJwtAuthProvider, P as PersSDK } from './chunks/pers-sdk-CJo4CCTG.js';
1
+ import { k as StaticJwtAuthProvider, P as PersSDK } from './chunks/pers-sdk-BiP7UMJ3.js';
2
2
  import { AccountOwnerType } from '@explorins/pers-shared';
3
3
  export { AccountOwnerType } from '@explorins/pers-shared';
4
4
  import { N as NodeHttpClientAdapter } from './chunks/node-http-client-DloDLfm9.js';
5
- import './chunks/index-CKm_V5XE.js';
5
+ import './chunks/index-DgTEdUgC.js';
6
6
  import './user.js';
7
7
  import './chunks/pagination-utils-9vQ-Npkr.js';
8
8
  import './user-status.js';
@@ -10,8 +10,9 @@ import './chunks/token-service-BxEO5YVN.js';
10
10
  import './chunks/business-membership-service-CFa-TI39.js';
11
11
  import './campaign.js';
12
12
  import './chunks/redemption-service-C_UTTDag.js';
13
- import './chunks/transaction-request.builder-DGTxGvc3.js';
13
+ import './chunks/transaction-request.builder-C3C19kCx.js';
14
14
  import './chunks/payment-service-IvM6rryM.js';
15
+ import './chunks/tenant-manager-Bbj0bKoo.js';
15
16
  import './chunks/tenant-service-CsRA3O2V.js';
16
17
  import './chunks/analytics-service-vm7B7LhS.js';
17
18
  import './donation.js';
package/dist/node.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sources":["../src/node.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAQH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACG,SAAU,aAAa,CAAC,OAK7B,EAAA;AACC,IAAA,MAAM,UAAU,GAAG,IAAI,qBAAqB,EAAE;AAC9C,IAAA,MAAM,YAAY,GAAG,IAAI,qBAAqB,CAAC;QAC7C,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,UAAU,EAAE,OAAO,CAAC,UAAU;AAC9B,QAAA,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC;AAChD,KAAA,CAAC;AAEF,IAAA,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE;AAC7B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,YAAY;QAChD,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC;AACD,KAAA,CAAC;AACJ;;;;"}
1
+ {"version":3,"file":"node.js","sources":["../src/node.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;AAkBG;AAQH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqCG;AACG,SAAU,aAAa,CAAC,OAK7B,EAAA;AACC,IAAA,MAAM,UAAU,GAAG,IAAI,qBAAqB,EAAE;AAC9C,IAAA,MAAM,YAAY,GAAG,IAAI,qBAAqB,CAAC;QAC7C,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,UAAU,EAAE,OAAO,CAAC,UAAU;AAC9B,QAAA,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC;AAChD,KAAA,CAAC;AAEF,IAAA,OAAO,IAAI,OAAO,CAAC,UAAU,EAAE;AAC7B,QAAA,WAAW,EAAE,OAAO,CAAC,WAAW,IAAI,YAAY;QAChD,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC;AACD,KAAA,CAAC;AACJ;;;;"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@explorins/pers-sdk",
3
- "version": "2.1.11",
3
+ "version": "2.1.15",
4
4
  "description": "Platform-agnostic SDK for PERS (Phygital Experience Rewards System) - Core business logic and API integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -132,8 +132,9 @@
132
132
  "publish-with-docs": "npm run clean && npm run build && npm run docs && npm version patch && npm publish"
133
133
  },
134
134
  "dependencies": {
135
- "@explorins/pers-shared": "^2.1.100",
135
+ "@explorins/pers-shared": "^2.1.117",
136
136
  "@explorins/web3-ts": "^0.3.77",
137
+ "@explorins/web3-types": "^1.2.0",
137
138
  "ethers": "^6.15.0"
138
139
  },
139
140
  "devDependencies": {
@@ -170,7 +170,8 @@ import { PersConfig } from './core/pers-config';
170
170
  import { PersApiClient } from './core/pers-api-client';
171
171
  import { PersEventEmitter } from './core/events';
172
172
  import { UserDTO } from '@explorins/pers-shared';
173
- import { AuthManager, UserManager, UserStatusManager, TokenManager, BusinessManager, CampaignManager, RedemptionManager, TransactionManager, PurchaseManager, FileManager, TenantManager, ApiKeyManager, AnalyticsManager, DonationManager, TriggerSourceManager } from './managers';
173
+ import { AuthManager, UserManager, UserStatusManager, TokenManager, BusinessManager, CampaignManager, RedemptionManager, TransactionManager, PurchaseManager, FileManager, TenantManager, ApiKeyManager, AnalyticsManager, DonationManager, TriggerSourceManager, WebhookManager, WalletEventsManager } from './managers';
174
+ import type { WalletEventsConfig } from './managers';
174
175
  /**
175
176
  * PERS SDK - Main SDK class with domain managers
176
177
  *
@@ -246,6 +247,9 @@ export declare class PersSDK {
246
247
  private _analytics?;
247
248
  private _donations?;
248
249
  private _triggerSources?;
250
+ private _webhooks?;
251
+ private _walletEvents?;
252
+ private walletEventsConfig?;
249
253
  /**
250
254
  * Creates a new PERS SDK instance
251
255
  *
@@ -289,6 +293,29 @@ export declare class PersSDK {
289
293
  * ```
290
294
  */
291
295
  constructor(httpClient: HttpClient, config: PersConfig);
296
+ /**
297
+ * Setup auto-connect for wallet events on authentication
298
+ * @internal
299
+ */
300
+ private setupWalletEventsAutoConnect;
301
+ /**
302
+ * Connect to wallet events and auto-subscribe based on auth type
303
+ *
304
+ * Connects to the WebSocket relay and automatically subscribes to relevant
305
+ * blockchain events based on the current authentication type:
306
+ * - **USER**: Subscribes to all user's wallets
307
+ * - **BUSINESS**: Subscribes to all business's wallets
308
+ * - **TENANT**: Subscribes to all chains where tokens are deployed
309
+ *
310
+ * This method is called automatically on login when `captureWalletEvents` is enabled.
311
+ * Call manually if you need to reconnect or refresh subscriptions.
312
+ *
313
+ * @example Manual connection
314
+ * ```typescript
315
+ * await sdk.connectWalletEvents();
316
+ * ```
317
+ */
318
+ connectWalletEvents(): Promise<void>;
292
319
  /**
293
320
  * Restore user session from stored tokens
294
321
  *
@@ -578,6 +605,88 @@ export declare class PersSDK {
578
605
  * ```
579
606
  */
580
607
  get triggerSources(): TriggerSourceManager;
608
+ /**
609
+ * Webhook manager - High-level webhook operations
610
+ *
611
+ * Provides methods for creating webhooks, triggering them programmatically,
612
+ * and monitoring execution history. Supports async workflows with callbacks.
613
+ *
614
+ * @returns WebhookManager instance
615
+ *
616
+ * @example Webhook Operations
617
+ * ```typescript
618
+ * // Admin: Create a webhook
619
+ * const webhook = await sdk.webhooks.create({
620
+ * name: 'Order Processing',
621
+ * targetUrl: 'https://n8n.example.com/webhook/orders',
622
+ * method: 'POST'
623
+ * });
624
+ *
625
+ * // Trigger webhook with payload
626
+ * const result = await sdk.webhooks.trigger(webhook.id, {
627
+ * orderId: 'order-123',
628
+ * action: 'created'
629
+ * });
630
+ *
631
+ * // Trigger and wait for async workflow completion
632
+ * const asyncResult = await sdk.webhooks.triggerAndWait(
633
+ * 'ai-webhook',
634
+ * { prompt: 'Analyze this data' },
635
+ * 30000 // Wait up to 30s
636
+ * );
637
+ * ```
638
+ *
639
+ * @see {@link WebhookManager} for detailed documentation
640
+ */
641
+ get webhooks(): WebhookManager;
642
+ /**
643
+ * Wallet Events Manager - Real-time blockchain events for user's wallets
644
+ *
645
+ * Provides real-time WebSocket connection to receive blockchain events
646
+ * for the user's wallets (transfers, approvals, NFT mints, etc.).
647
+ *
648
+ * Events are also routed through `sdk.events` for unified event handling.
649
+ *
650
+ * **Important:** Requires `walletEventsWsUrl` configuration and authentication.
651
+ *
652
+ * @returns WalletEventsManager instance
653
+ *
654
+ * @example Basic Usage
655
+ * ```typescript
656
+ * // Configure SDK with events URL
657
+ * sdk.configureWalletEvents({ wsUrl: 'wss://events.pers.ninja' });
658
+ *
659
+ * // Connect after authentication
660
+ * await sdk.auth.loginWithToken(jwt, 'user');
661
+ * await sdk.walletEvents.connect();
662
+ *
663
+ * // Listen for token transfers
664
+ * sdk.walletEvents.on('Transfer', (event) => {
665
+ * if (event.data.to === myWallet) {
666
+ * showNotification(`Received ${event.data.value} tokens!`);
667
+ * }
668
+ * });
669
+ * ```
670
+ *
671
+ * @example Unified Event Stream
672
+ * ```typescript
673
+ * // Wallet events also flow through sdk.events
674
+ * sdk.events.subscribe((event) => {
675
+ * if (event.domain === 'wallet') {
676
+ * console.log('Wallet event:', event.type);
677
+ * }
678
+ * });
679
+ * ```
680
+ *
681
+ * @see {@link WalletEventsManager} for detailed documentation
682
+ */
683
+ get walletEvents(): WalletEventsManager;
684
+ /**
685
+ * Configure wallet events (call before accessing walletEvents)
686
+ *
687
+ * @param config - Events configuration including wsUrl
688
+ */
689
+ configureWalletEvents(config: WalletEventsConfig): void;
581
690
  /**
582
691
  * Gets the API client for direct PERS API requests
583
692
  *
@@ -1 +1 @@
1
- {"version":3,"file":"pers-sdk.d.ts","sourceRoot":"","sources":["../src/pers-sdk.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8JG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAoB,OAAO,EAAY,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EACL,WAAW,EACX,WAAW,EACX,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,oBAAoB,EACrB,MAAM,YAAY,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,OAAO,CAAmB;IAClC,OAAO,CAAC,KAAK,CAAC,CAAc;IAC5B,OAAO,CAAC,MAAM,CAAC,CAAc;IAC7B,OAAO,CAAC,WAAW,CAAC,CAAoB;IACxC,OAAO,CAAC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Ae,CAK/B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,IAAI,cAAc,IAAI,oBAAoB,CAKzC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,IAAI,QAAQ,IAAI,cAAc,CAM7B;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,IAAI,YAAY,IAAI,mBAAmB,CAKtC;IAED;;;;OAIG;IACH,qBAAqB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAMvD;;;;;;;;;;;;;;OAcG;IACH,GAAG,IAAI,aAAa;IAIpB;;;;OAIG;IACH,YAAY,IAAI,OAAO;IAIvB;;;;;;;OAOG;IACH,aAAa,IAAI,OAAO;CAGzB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,UAAU,GACjB,OAAO,CAET;AAGD,cAAc,wBAAwB,CAAC;AAGvC,YAAY,EAAE,WAAW,EAAE,MAAM,gDAAgD,CAAC"}
@@ -8,6 +8,6 @@ export { TransactionApi } from './api/transaction-api';
8
8
  export { TransactionService } from './services/transaction-service';
9
9
  export type { TransactionQueryOptions, POSAuthorizationOptions } from './models';
10
10
  export { buildMintRequest, buildBurnRequest, buildTransferRequest, buildPOSTransferRequest, buildPOSBurnRequest, buildSubmissionRequest } from './models';
11
- export { ClientTransactionType, extractDeadlineFromSigningData, buildPendingTransactionData, needsExternalSigning, getSigningUrl, } from './models/transaction-request.builder';
11
+ export { ClientTransactionType, extractDeadlineFromSigningData, buildPendingTransactionData, needsExternalSigning, needsSubmission, getSigningUrl, } from './models/transaction-request.builder';
12
12
  export type { ClientTransactionType as ClientTransactionTypeEnum, PendingTransactionParams } from './models/transaction-request.builder';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAG1J,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,oBAAoB,EACpB,aAAa,GACd,MAAM,sCAAsC,CAAC;AAE9C,YAAY,EACV,qBAAqB,IAAI,yBAAyB,EAClD,wBAAwB,EACzB,MAAM,sCAAsC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,YAAY,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAG1J,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAC9B,2BAA2B,EAC3B,oBAAoB,EACpB,eAAe,EACf,aAAa,GACd,MAAM,sCAAsC,CAAC;AAE9C,YAAY,EACV,qBAAqB,IAAI,yBAAyB,EAClD,wBAAwB,EACzB,MAAM,sCAAsC,CAAC"}
@@ -15,6 +15,22 @@ import { TransactionRequestDTO, Web3TransactionType, AccountOwnerType, Transacti
15
15
  * ```
16
16
  */
17
17
  export declare function needsExternalSigning(response: TransactionRequestResponseDTO | null | undefined): boolean;
18
+ /**
19
+ * 🔍 Check if a transaction response is signed and ready for submission
20
+ *
21
+ * Returns true when the user has signed the transaction and it's waiting
22
+ * to be submitted to the blockchain (typically by a business in POS flows).
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * const response = await sdk.transactions.getTransaction(transactionId);
27
+ * if (needsSubmission(response)) {
28
+ * // Transaction is signed, ready to submit
29
+ * await sdk.transactions.submitSignedTransaction({ ... });
30
+ * }
31
+ * ```
32
+ */
33
+ export declare function needsSubmission(response: TransactionRequestResponseDTO | null | undefined): boolean;
18
34
  /**
19
35
  * 🔗 Get the signing URL from a transaction response
20
36
  *
@@ -1 +1 @@
1
- {"version":3,"file":"transaction-request.builder.d.ts","sourceRoot":"","sources":["../../../src/transaction/models/transaction-request.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,EAAqB,+BAA+B,EAAE,6BAA6B,EAAqB,MAAM,wBAAwB,CAAC;AAO5M;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIxG;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/B,MAAM,GAAG,IAAI,CAWf;AAMD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAEhC,4EAA4E;;;;;CAEpE,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErG;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6CA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G;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAcxB"}
1
+ {"version":3,"file":"transaction-request.builder.d.ts","sourceRoot":"","sources":["../../../src/transaction/models/transaction-request.builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,gBAAgB,EAAqB,+BAA+B,EAAE,6BAA6B,EAAqB,MAAM,wBAAwB,CAAC;AAO5M;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAIxG;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAInG;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAC/B,MAAM,GAAG,IAAI,CAWf;AAMD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;IAEhC,4EAA4E;;;;;CAEpE,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErG;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACvC,yCAAyC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA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AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,8BAA8B;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kEAAkE;IAClE,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,qBAAqB,CAcxB"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var transactionRequest_builder = require('./chunks/transaction-request.builder-Bjxi0C9F.cjs');
3
+ var transactionRequest_builder = require('./chunks/transaction-request.builder-CW3Wwdi3.cjs');
4
4
  require('@explorins/pers-shared');
5
5
  require('./chunks/pagination-utils-B2jRHMSO.cjs');
6
6
 
@@ -19,4 +19,5 @@ exports.buildTransferRequest = transactionRequest_builder.buildTransferRequest;
19
19
  exports.extractDeadlineFromSigningData = transactionRequest_builder.extractDeadlineFromSigningData;
20
20
  exports.getSigningUrl = transactionRequest_builder.getSigningUrl;
21
21
  exports.needsExternalSigning = transactionRequest_builder.needsExternalSigning;
22
+ exports.needsSubmission = transactionRequest_builder.needsSubmission;
22
23
  //# sourceMappingURL=transaction.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"transaction.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- export { C as ClientTransactionType, T as TransactionApi, a as TransactionService, c as buildBurnRequest, b as buildMintRequest, f as buildPOSBurnRequest, e as buildPOSTransferRequest, i as buildPendingTransactionData, g as buildSubmissionRequest, d as buildTransferRequest, h as extractDeadlineFromSigningData, j as getSigningUrl, n as needsExternalSigning } from './chunks/transaction-request.builder-DGTxGvc3.js';
1
+ export { C as ClientTransactionType, T as TransactionApi, a as TransactionService, c as buildBurnRequest, b as buildMintRequest, f as buildPOSBurnRequest, e as buildPOSTransferRequest, i as buildPendingTransactionData, g as buildSubmissionRequest, d as buildTransferRequest, h as extractDeadlineFromSigningData, k as getSigningUrl, n as needsExternalSigning, j as needsSubmission } from './chunks/transaction-request.builder-C3C19kCx.js';
2
2
  import '@explorins/pers-shared';
3
3
  import './chunks/pagination-utils-9vQ-Npkr.js';
4
4
  //# sourceMappingURL=transaction.js.map