@hiver/connector-agent 4.22.2 → 4.22.3
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/constants/global-constants.d.ts +1 -0
- package/constants/global-constants.d.ts.map +1 -1
- package/features/write-form/components/write-form/index.d.ts.map +1 -1
- package/index.es.js +6651 -6626
- package/index.umd.js +438 -438
- package/package.json +1 -1
- package/utils/__tests__/form-date.test.d.ts +2 -0
- package/utils/__tests__/form-date.test.d.ts.map +1 -0
- package/utils/form.d.ts +11 -1
- package/utils/form.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-date.test.d.ts","sourceRoot":"","sources":["../../../src/utils/__tests__/form-date.test.ts"],"names":[],"mappings":""}
|
package/utils/form.d.ts
CHANGED
|
@@ -14,9 +14,19 @@ export declare const getArgsValueMap: (state: FormState, args?: {
|
|
|
14
14
|
export declare const getFormFieldsValidations: ({ formFields }: {
|
|
15
15
|
formFields: FormFields[];
|
|
16
16
|
}) => FormValidation;
|
|
17
|
+
/**
|
|
18
|
+
* True when a `date` field's template meta says the third party stores a
|
|
19
|
+
* date-only value: not epoch (ClickUp/Trello due dates) and not a datetime
|
|
20
|
+
* `format` (NetSuite `%Y-%m-%dT%H:%M:%SZ`). Only these fields are safe to
|
|
21
|
+
* submit as the agent's local calendar day.
|
|
22
|
+
*/
|
|
23
|
+
export declare const isDateOnlyField: (field: {
|
|
24
|
+
type?: string;
|
|
25
|
+
meta?: FieldListResponse["meta"];
|
|
26
|
+
}) => boolean;
|
|
17
27
|
export declare const parseFormStateToArgs: (state: FormState, args: {
|
|
18
28
|
[key: string]: string;
|
|
19
|
-
}, multiSelectFieldNames?: Set<string>, checkboxFieldNames?: Set<string>, attachmentFieldNames?: Set<string>) => Record<string, FormArgValue>;
|
|
29
|
+
}, multiSelectFieldNames?: Set<string>, checkboxFieldNames?: Set<string>, attachmentFieldNames?: Set<string>, dateFieldNames?: Set<string>) => Record<string, FormArgValue>;
|
|
20
30
|
export declare const createRows: <T extends FieldListResponse>(formsList: T[], colsLength: number) => {
|
|
21
31
|
id: string;
|
|
22
32
|
formFields: T[];
|
package/utils/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,cAAc,EAA8B,MAAM,eAAe,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAc,iBAAiB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnH,eAAO,MAAM,yBAAyB,SAC9B;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAA;CAAE,MAC3E,MAAM,QACJ,MAAM,WAOb,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,SAAS,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAAM,EAgB9F,CAAC;AAEF,eAAO,MAAM,eAAe,UAAW,SAAS,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE;;CA+BjF,CAAC;AAEF,eAAO,MAAM,wBAAwB,mBAAoB;IAAE,UAAU,EAAE,UAAU,EAAE,CAAA;CAAE,KAAG,cA2CvF,CAAC;AAwCF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,UAAW;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;CAAE,KAAG,OAa5F,CAAC;AAEF,eAAO,MAAM,oBAAoB,UACxB,SAAS,QACV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