@plyaz/types 1.41.3 → 1.42.1
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/core/hooks/files/download.d.ts +7 -1
- package/dist/core/hooks/files/upload.d.ts +11 -6
- package/dist/index.cjs +22 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/payments/index.cjs +22 -0
- package/dist/payments/index.cjs.map +1 -1
- package/dist/payments/index.js +21 -1
- package/dist/payments/index.js.map +1 -1
- package/dist/payments/provider/core/enums.d.ts +1 -0
- package/dist/payments/provider/core/types.d.ts +1 -0
- package/dist/payments/provider/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Types for useFileDownload hook.
|
|
5
5
|
*/
|
|
6
|
+
import type { ServiceOptions } from '../../../api';
|
|
6
7
|
/**
|
|
7
8
|
* Options for useFileDownload hook
|
|
8
9
|
*
|
|
@@ -21,10 +22,15 @@ export interface CoreFileDownloadOptions {
|
|
|
21
22
|
*
|
|
22
23
|
* Note: Errors propagate through global error handling (error boundaries,
|
|
23
24
|
* global error alert store). Results are returned from the Promise.
|
|
25
|
+
*
|
|
26
|
+
* Download accepts optional ServiceOptions for debugging/auditing:
|
|
27
|
+
* - `apiConfig.unifiedStrategy` - Override the unified strategy
|
|
28
|
+
* - `apiConfig.timeout` - Override timeout
|
|
29
|
+
* - etc.
|
|
24
30
|
*/
|
|
25
31
|
export interface CoreFileDownloadResult {
|
|
26
32
|
/** Download a file by ID */
|
|
27
|
-
download: (fileId: string, options?: CoreFileDownloadOptions) => Promise<Blob | null>;
|
|
33
|
+
download: (fileId: string, options?: CoreFileDownloadOptions, serviceOptions?: ServiceOptions) => Promise<Blob | null>;
|
|
28
34
|
/** Whether currently downloading */
|
|
29
35
|
isDownloading: boolean;
|
|
30
36
|
/** Current download ID (if any) */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Types for useFileUpload hook.
|
|
5
5
|
* Uses Pick to extend from existing API types where applicable.
|
|
6
6
|
*/
|
|
7
|
-
import type { UploadFileRequest, GenerateDocumentRequest } from '../../../api';
|
|
7
|
+
import type { UploadFileRequest, GenerateDocumentRequest, ServiceOptions } from '../../../api';
|
|
8
8
|
import type { FILE_CATEGORY, ENTITY_TYPE } from '../../../storage/enums';
|
|
9
9
|
/**
|
|
10
10
|
* Options for useFileUpload hook - direct file upload
|
|
@@ -72,18 +72,23 @@ export interface CoreBulkTemplateUploadOptions {
|
|
|
72
72
|
*
|
|
73
73
|
* Note: Errors propagate through global error handling (error boundaries,
|
|
74
74
|
* global error alert store). Results are returned from the Promise.
|
|
75
|
+
*
|
|
76
|
+
* All methods accept optional ServiceOptions for debugging/auditing:
|
|
77
|
+
* - `apiConfig.unifiedStrategy` - Override the unified strategy
|
|
78
|
+
* - `apiConfig.timeout` - Override timeout
|
|
79
|
+
* - etc.
|
|
75
80
|
*/
|
|
76
81
|
export interface CoreFileUploadResult {
|
|
77
82
|
/** Upload a file directly */
|
|
78
|
-
upload: (file: File, options?: CoreFileUploadOptions) => Promise<unknown>;
|
|
83
|
+
upload: (file: File, options?: CoreFileUploadOptions, serviceOptions?: ServiceOptions) => Promise<unknown>;
|
|
79
84
|
/** Upload multiple files directly */
|
|
80
|
-
uploadMultiple: (files: File[], options?: CoreFileUploadOptions) => Promise<unknown[]>;
|
|
85
|
+
uploadMultiple: (files: File[], options?: CoreFileUploadOptions, serviceOptions?: ServiceOptions) => Promise<unknown[]>;
|
|
81
86
|
/** Generate document from template and upload to storage */
|
|
82
|
-
uploadFromTemplate: (options: CoreTemplateUploadOptions) => Promise<unknown>;
|
|
87
|
+
uploadFromTemplate: (options: CoreTemplateUploadOptions, serviceOptions?: ServiceOptions) => Promise<unknown>;
|
|
83
88
|
/** Generate multiple documents from templates and upload to storage */
|
|
84
|
-
uploadMultipleFromTemplate: (options: CoreBulkTemplateUploadOptions) => Promise<unknown[]>;
|
|
89
|
+
uploadMultipleFromTemplate: (options: CoreBulkTemplateUploadOptions, serviceOptions?: ServiceOptions) => Promise<unknown[]>;
|
|
85
90
|
/** Generate document from template (no upload - returns buffer for client download) */
|
|
86
|
-
generate: (options: CoreGenerateOptions) => Promise<{
|
|
91
|
+
generate: (options: CoreGenerateOptions, serviceOptions?: ServiceOptions) => Promise<{
|
|
87
92
|
buffer: string;
|
|
88
93
|
size: number;
|
|
89
94
|
}>;
|
package/dist/index.cjs
CHANGED
|
@@ -8183,6 +8183,26 @@ var EVENT_PROCESSING_STATUS = /* @__PURE__ */ ((EVENT_PROCESSING_STATUS2) => {
|
|
|
8183
8183
|
return EVENT_PROCESSING_STATUS2;
|
|
8184
8184
|
})(EVENT_PROCESSING_STATUS || {});
|
|
8185
8185
|
|
|
8186
|
+
// src/payments/provider/core/enums.ts
|
|
8187
|
+
var WITHDRAWAL_STATUS = /* @__PURE__ */ ((WITHDRAWAL_STATUS2) => {
|
|
8188
|
+
WITHDRAWAL_STATUS2["Requested"] = "requested";
|
|
8189
|
+
WITHDRAWAL_STATUS2["Approved"] = "approved";
|
|
8190
|
+
WITHDRAWAL_STATUS2["InTransit"] = "in_transit";
|
|
8191
|
+
WITHDRAWAL_STATUS2["Completed"] = "completed";
|
|
8192
|
+
WITHDRAWAL_STATUS2["Failed"] = "failed";
|
|
8193
|
+
WITHDRAWAL_STATUS2["Cancelled"] = "cancelled";
|
|
8194
|
+
return WITHDRAWAL_STATUS2;
|
|
8195
|
+
})(WITHDRAWAL_STATUS || {});
|
|
8196
|
+
var SUBSCRIPTION_STATUS = /* @__PURE__ */ ((SUBSCRIPTION_STATUS2) => {
|
|
8197
|
+
SUBSCRIPTION_STATUS2["PENDING"] = "pending";
|
|
8198
|
+
SUBSCRIPTION_STATUS2["ACTIVE"] = "active";
|
|
8199
|
+
SUBSCRIPTION_STATUS2["TRIALING"] = "trialing";
|
|
8200
|
+
SUBSCRIPTION_STATUS2["PAUSED"] = "paused";
|
|
8201
|
+
SUBSCRIPTION_STATUS2["CANCELED"] = "canceled";
|
|
8202
|
+
SUBSCRIPTION_STATUS2["EXPIRED"] = "expired";
|
|
8203
|
+
return SUBSCRIPTION_STATUS2;
|
|
8204
|
+
})(SUBSCRIPTION_STATUS || {});
|
|
8205
|
+
|
|
8186
8206
|
// src/payments/provider/provider-capability/enums.ts
|
|
8187
8207
|
var PAYMENT_PROVIDER_TYPE = /* @__PURE__ */ ((PAYMENT_PROVIDER_TYPE2) => {
|
|
8188
8208
|
PAYMENT_PROVIDER_TYPE2["Stripe"] = "stripe";
|
|
@@ -10072,6 +10092,7 @@ exports.STREAM_PROGRESS_STATUS = STREAM_PROGRESS_STATUS;
|
|
|
10072
10092
|
exports.STREAM_SCOPE = STREAM_SCOPE;
|
|
10073
10093
|
exports.STREAM_SUBTYPE = STREAM_SUBTYPE;
|
|
10074
10094
|
exports.STREAM_TRANSPORT = STREAM_TRANSPORT;
|
|
10095
|
+
exports.SUBSCRIPTION_STATUS = SUBSCRIPTION_STATUS;
|
|
10075
10096
|
exports.SYSTEM_STREAM_CHANNEL = SYSTEM_STREAM_CHANNEL;
|
|
10076
10097
|
exports.SYSTEM_STREAM_EVENT = SYSTEM_STREAM_EVENT;
|
|
10077
10098
|
exports.SYSTEM_STREAM_MESSAGE_TYPE = SYSTEM_STREAM_MESSAGE_TYPE;
|
|
@@ -10125,6 +10146,7 @@ exports.WEBHOOK_ENCRYPTION_METHOD = WEBHOOK_ENCRYPTION_METHOD;
|
|
|
10125
10146
|
exports.WEBHOOK_EVENT_TYPE = WEBHOOK_EVENT_TYPE;
|
|
10126
10147
|
exports.WEBHOOK_EVENT_TYPE_MAPPING = WEBHOOK_EVENT_TYPE_MAPPING;
|
|
10127
10148
|
exports.WEBHOOK_VERIFICATION_REASON = WEBHOOK_VERIFICATION_REASON;
|
|
10149
|
+
exports.WITHDRAWAL_STATUS = WITHDRAWAL_STATUS;
|
|
10128
10150
|
exports.athleteProfileSchema = athleteProfileSchema;
|
|
10129
10151
|
exports.basicProfileSchema = basicProfileSchema;
|
|
10130
10152
|
exports.fanProfileSchema = fanProfileSchema;
|