@socotra/ec-react-schemas 2.9.0-next.0 → 2.9.0-next.2
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.d.ts +114 -0
- package/dist/index.es.js +923 -859
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -643,6 +643,43 @@ export declare const AnchorTypeEnumSchema: z.ZodEnum<["none", "dayOfMonth", "anc
|
|
|
643
643
|
|
|
644
644
|
export declare const anchorTypeEnumSchema: z.ZodEnum<["none", "dayOfMonth", "anchorTime", "dayOfWeek", "weekOfMonth"]>;
|
|
645
645
|
|
|
646
|
+
export declare type AttachDocumentRequestParams = z.infer<typeof AttachDocumentRequestParamsSchema>;
|
|
647
|
+
|
|
648
|
+
export declare const AttachDocumentRequestParamsSchema: z.ZodObject<{
|
|
649
|
+
tenantLocator: z.ZodString;
|
|
650
|
+
referenceLocator: z.ZodString;
|
|
651
|
+
referenceType: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
652
|
+
name: z.ZodString;
|
|
653
|
+
staticName: z.ZodOptional<z.ZodString>;
|
|
654
|
+
documentFormat: z.ZodEnum<["text", "html", "pdf", "jpg", "jpeg", "doc", "docx", "xls", "xlsx", "csv", "txt", "zip"]>;
|
|
655
|
+
metadata: z.ZodOptional<z.ZodString>;
|
|
656
|
+
transactionLocator: z.ZodOptional<z.ZodString>;
|
|
657
|
+
segmentLocator: z.ZodOptional<z.ZodString>;
|
|
658
|
+
category: z.ZodOptional<z.ZodString>;
|
|
659
|
+
}, "strip", z.ZodTypeAny, {
|
|
660
|
+
tenantLocator: string;
|
|
661
|
+
name: string;
|
|
662
|
+
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
663
|
+
referenceLocator: string;
|
|
664
|
+
documentFormat: "text" | "html" | "pdf" | "jpg" | "jpeg" | "doc" | "docx" | "xls" | "xlsx" | "csv" | "txt" | "zip";
|
|
665
|
+
staticName?: string | undefined;
|
|
666
|
+
category?: string | undefined;
|
|
667
|
+
metadata?: string | undefined;
|
|
668
|
+
segmentLocator?: string | undefined;
|
|
669
|
+
transactionLocator?: string | undefined;
|
|
670
|
+
}, {
|
|
671
|
+
tenantLocator: string;
|
|
672
|
+
name: string;
|
|
673
|
+
referenceType: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term";
|
|
674
|
+
referenceLocator: string;
|
|
675
|
+
documentFormat: "text" | "html" | "pdf" | "jpg" | "jpeg" | "doc" | "docx" | "xls" | "xlsx" | "csv" | "txt" | "zip";
|
|
676
|
+
staticName?: string | undefined;
|
|
677
|
+
category?: string | undefined;
|
|
678
|
+
metadata?: string | undefined;
|
|
679
|
+
segmentLocator?: string | undefined;
|
|
680
|
+
transactionLocator?: string | undefined;
|
|
681
|
+
}>;
|
|
682
|
+
|
|
646
683
|
export declare type AuthTokenCreateRequest = z.infer<typeof AuthTokenCreateRequestSchema>;
|
|
647
684
|
|
|
648
685
|
export declare const AuthTokenCreateRequestSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -7003,6 +7040,12 @@ export declare const DeploymentMetadataSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
7003
7040
|
latestVersion: string;
|
|
7004
7041
|
}>;
|
|
7005
7042
|
|
|
7043
|
+
export declare type DocumentFormatEnum = z.infer<typeof DocumentFormatEnumSchema>;
|
|
7044
|
+
|
|
7045
|
+
export declare const DocumentFormatEnumSchema: z.ZodEnum<["text", "html", "pdf", "jpg", "jpeg", "doc", "docx", "xls", "xlsx", "csv", "txt", "zip"]>;
|
|
7046
|
+
|
|
7047
|
+
export declare type DocumentInstance = z.infer<typeof DocumentInstanceSchema>;
|
|
7048
|
+
|
|
7006
7049
|
export declare type DocumentInstanceResponse = z.infer<typeof documentInstanceResponseSchema>;
|
|
7007
7050
|
|
|
7008
7051
|
export declare const documentInstanceResponseSchema: z.ZodObject<{
|
|
@@ -7064,12 +7107,83 @@ export declare const documentInstanceResponseSchema: z.ZodObject<{
|
|
|
7064
7107
|
readyAt?: string | undefined;
|
|
7065
7108
|
}>;
|
|
7066
7109
|
|
|
7110
|
+
export declare const DocumentInstanceSchema: z.ZodObject<{
|
|
7111
|
+
locator: z.ZodString;
|
|
7112
|
+
referenceLocator: z.ZodString;
|
|
7113
|
+
referenceType: z.ZodOptional<z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>>;
|
|
7114
|
+
referenceDocumentLocator: z.ZodOptional<z.ZodString>;
|
|
7115
|
+
transactionLocator: z.ZodOptional<z.ZodString>;
|
|
7116
|
+
segmentLocator: z.ZodOptional<z.ZodString>;
|
|
7117
|
+
termLocator: z.ZodOptional<z.ZodString>;
|
|
7118
|
+
policyLocator: z.ZodOptional<z.ZodString>;
|
|
7119
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7120
|
+
staticName: z.ZodOptional<z.ZodString>;
|
|
7121
|
+
documentInstanceState: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
7122
|
+
documentFormat: z.ZodOptional<z.ZodEnum<["text", "html", "pdf", "jpg", "jpeg", "doc", "docx", "xls", "xlsx", "csv", "txt", "zip"]>>;
|
|
7123
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7124
|
+
createdAt: z.ZodString;
|
|
7125
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
7126
|
+
readyAt: z.ZodOptional<z.ZodString>;
|
|
7127
|
+
renderingData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
7128
|
+
processingErrors: z.ZodOptional<z.ZodString>;
|
|
7129
|
+
external: z.ZodOptional<z.ZodBoolean>;
|
|
7130
|
+
category: z.ZodOptional<z.ZodString>;
|
|
7131
|
+
}, "strip", z.ZodTypeAny, {
|
|
7132
|
+
locator: string;
|
|
7133
|
+
createdAt: string;
|
|
7134
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
7135
|
+
referenceLocator: string;
|
|
7136
|
+
createdBy?: string | undefined;
|
|
7137
|
+
staticName?: string | undefined;
|
|
7138
|
+
category?: string | undefined;
|
|
7139
|
+
policyLocator?: string | undefined;
|
|
7140
|
+
name?: string | undefined;
|
|
7141
|
+
referenceType?: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term" | undefined;
|
|
7142
|
+
metadata?: Record<string, any> | undefined;
|
|
7143
|
+
renderingData?: Record<string, any> | undefined;
|
|
7144
|
+
referenceDocumentLocator?: string | undefined;
|
|
7145
|
+
segmentLocator?: string | undefined;
|
|
7146
|
+
termLocator?: string | undefined;
|
|
7147
|
+
transactionLocator?: string | undefined;
|
|
7148
|
+
documentFormat?: "text" | "html" | "pdf" | "jpg" | "jpeg" | "doc" | "docx" | "xls" | "xlsx" | "csv" | "txt" | "zip" | undefined;
|
|
7149
|
+
processingErrors?: string | undefined;
|
|
7150
|
+
readyAt?: string | undefined;
|
|
7151
|
+
external?: boolean | undefined;
|
|
7152
|
+
}, {
|
|
7153
|
+
locator: string;
|
|
7154
|
+
createdAt: string;
|
|
7155
|
+
documentInstanceState: "draft" | "dataReady" | "ready" | "dataError" | "renderError" | "conversionError";
|
|
7156
|
+
referenceLocator: string;
|
|
7157
|
+
createdBy?: string | undefined;
|
|
7158
|
+
staticName?: string | undefined;
|
|
7159
|
+
category?: string | undefined;
|
|
7160
|
+
policyLocator?: string | undefined;
|
|
7161
|
+
name?: string | undefined;
|
|
7162
|
+
referenceType?: "policy" | "quote" | "invoice" | "transaction" | "segment" | "term" | undefined;
|
|
7163
|
+
metadata?: Record<string, any> | undefined;
|
|
7164
|
+
renderingData?: Record<string, any> | undefined;
|
|
7165
|
+
referenceDocumentLocator?: string | undefined;
|
|
7166
|
+
segmentLocator?: string | undefined;
|
|
7167
|
+
termLocator?: string | undefined;
|
|
7168
|
+
transactionLocator?: string | undefined;
|
|
7169
|
+
documentFormat?: "text" | "html" | "pdf" | "jpg" | "jpeg" | "doc" | "docx" | "xls" | "xlsx" | "csv" | "txt" | "zip" | undefined;
|
|
7170
|
+
processingErrors?: string | undefined;
|
|
7171
|
+
readyAt?: string | undefined;
|
|
7172
|
+
external?: boolean | undefined;
|
|
7173
|
+
}>;
|
|
7174
|
+
|
|
7067
7175
|
export declare type DocumentReference = z.infer<typeof documentReferenceTypeEnumSchema>;
|
|
7068
7176
|
|
|
7177
|
+
export declare type DocumentReferenceTypeEnum = z.infer<typeof DocumentReferenceTypeEnumSchema>;
|
|
7178
|
+
|
|
7179
|
+
export declare const DocumentReferenceTypeEnumSchema: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
7180
|
+
|
|
7069
7181
|
export declare const documentReferenceTypeEnumSchema: z.ZodEnum<["quote", "policy", "invoice", "transaction", "segment", "term"]>;
|
|
7070
7182
|
|
|
7071
7183
|
export declare type DocumentState = z.infer<typeof documentStateEnumSchema>;
|
|
7072
7184
|
|
|
7185
|
+
export declare const DocumentStateEnumSchema: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
7186
|
+
|
|
7073
7187
|
export declare const documentStateEnumSchema: z.ZodEnum<["draft", "dataReady", "ready", "dataError", "renderError", "conversionError"]>;
|
|
7074
7188
|
|
|
7075
7189
|
export declare type DocumentSummary = z.infer<typeof documentSummarySchema>;
|