@beabee/beabee-common 1.19.7 → 1.19.8
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/cjs/data/callouts.js +2 -0
- package/dist/cjs/data/index.js +67 -0
- package/dist/cjs/error/InvalidRule.js +11 -0
- package/dist/cjs/error/index.js +8 -0
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/search/api-keys.js +11 -0
- package/dist/cjs/search/callouts.js +101 -0
- package/dist/cjs/search/contacts.js +78 -0
- package/dist/cjs/search/index.js +81 -0
- package/dist/cjs/search/notices.js +37 -0
- package/dist/cjs/search/payments.js +27 -0
- package/dist/cjs/utils/callouts.js +118 -0
- package/dist/cjs/utils/date.js +77 -0
- package/dist/cjs/utils/payments.js +31 -0
- package/dist/cjs/utils/rules.js +69 -0
- package/dist/esm/data/callouts.js +1 -0
- package/dist/esm/data/index.js +50 -57
- package/dist/esm/error/InvalidRule.js +7 -10
- package/dist/esm/error/index.js +2 -1
- package/dist/esm/index.js +7 -4
- package/dist/esm/search/api-keys.js +7 -10
- package/dist/esm/search/callouts.js +94 -100
- package/dist/esm/search/contacts.js +74 -83
- package/dist/esm/search/index.js +64 -6
- package/dist/esm/search/notices.js +33 -36
- package/dist/esm/search/payments.js +23 -26
- package/dist/esm/utils/callouts.js +93 -91
- package/dist/esm/utils/date.js +56 -56
- package/dist/esm/utils/payments.js +23 -25
- package/dist/esm/utils/rules.js +58 -75
- package/dist/types/data/callouts.d.ts +74 -0
- package/dist/types/data/index.d.ts +4 -0
- package/dist/types/error/InvalidRule.d.ts +2 -2
- package/dist/types/error/index.d.ts +2 -1
- package/dist/types/index.d.ts +7 -5
- package/dist/types/search/api-keys.d.ts +1 -0
- package/dist/types/search/callouts.d.ts +5 -1
- package/dist/types/search/contacts.d.ts +1 -2
- package/dist/types/search/index.d.ts +194 -6
- package/dist/types/search/notices.d.ts +2 -1
- package/dist/types/search/payments.d.ts +2 -1
- package/dist/types/utils/callouts.d.ts +3 -1
- package/dist/types/utils/date.d.ts +3 -3
- package/dist/types/utils/payments.d.ts +7 -1
- package/dist/types/utils/rules.d.ts +1 -1
- package/package.json +12 -31
- package/README.md +0 -41
- package/dist/cjs/data/index.cjs +0 -87
- package/dist/cjs/error/InvalidRule.cjs +0 -35
- package/dist/cjs/error/index.cjs +0 -22
- package/dist/cjs/index.cjs +0 -28
- package/dist/cjs/search/api-keys.cjs +0 -35
- package/dist/cjs/search/callouts.cjs +0 -131
- package/dist/cjs/search/contacts.cjs +0 -105
- package/dist/cjs/search/index.cjs +0 -32
- package/dist/cjs/search/notices.cjs +0 -61
- package/dist/cjs/search/operators.cjs +0 -89
- package/dist/cjs/search/payments.cjs +0 -51
- package/dist/cjs/types/api-key-filter-name.cjs +0 -16
- package/dist/cjs/types/array-filter-args.cjs +0 -16
- package/dist/cjs/types/base-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/base-filter-args.cjs +0 -16
- package/dist/cjs/types/base-validated-rule.cjs +0 -16
- package/dist/cjs/types/callout-component-schema.cjs +0 -16
- package/dist/cjs/types/callout-filter-name.cjs +0 -16
- package/dist/cjs/types/callout-form-schema.cjs +0 -16
- package/dist/cjs/types/callout-navigation-schema.cjs +0 -16
- package/dist/cjs/types/callout-response-answer-address.cjs +0 -16
- package/dist/cjs/types/callout-response-answer-file-upload.cjs +0 -16
- package/dist/cjs/types/callout-response-answer.cjs +0 -16
- package/dist/cjs/types/callout-response-answers.cjs +0 -16
- package/dist/cjs/types/callout-response-comment-filter-name.cjs +0 -16
- package/dist/cjs/types/callout-response-filter-name.cjs +0 -16
- package/dist/cjs/types/callout-slide-schema.cjs +0 -16
- package/dist/cjs/types/callout-tag-filter-name.cjs +0 -16
- package/dist/cjs/types/content-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/date-unit.cjs +0 -16
- package/dist/cjs/types/duration.cjs +0 -16
- package/dist/cjs/types/enum-filter-args.cjs +0 -16
- package/dist/cjs/types/feeable.cjs +0 -16
- package/dist/cjs/types/filter-args.cjs +0 -16
- package/dist/cjs/types/filter-type.cjs +0 -16
- package/dist/cjs/types/filters.cjs +0 -16
- package/dist/cjs/types/index.cjs +0 -120
- package/dist/cjs/types/input-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/input-file-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/nestable-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/notice-filter-name.cjs +0 -16
- package/dist/cjs/types/operators-by-type.cjs +0 -16
- package/dist/cjs/types/other-filter-args.cjs +0 -16
- package/dist/cjs/types/paginated-query.cjs +0 -16
- package/dist/cjs/types/paginated.cjs +0 -16
- package/dist/cjs/types/payment-filter-name.cjs +0 -16
- package/dist/cjs/types/radio-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/role-type.cjs +0 -16
- package/dist/cjs/types/rule-group.cjs +0 -16
- package/dist/cjs/types/rule-operator.cjs +0 -16
- package/dist/cjs/types/rule-opperator-params.cjs +0 -16
- package/dist/cjs/types/rule-value.cjs +0 -16
- package/dist/cjs/types/rule.cjs +0 -16
- package/dist/cjs/types/select-callout-component-schema.cjs +0 -16
- package/dist/cjs/types/stripe-fee-country.cjs +0 -16
- package/dist/cjs/types/unit-matches.cjs +0 -16
- package/dist/cjs/types/validated-boolean-rule.cjs +0 -16
- package/dist/cjs/types/validated-number-rule.cjs +0 -16
- package/dist/cjs/types/validated-rule-group.cjs +0 -16
- package/dist/cjs/types/validated-rule-value.cjs +0 -16
- package/dist/cjs/types/validated-rule.cjs +0 -16
- package/dist/cjs/types/validated-string-rule.cjs +0 -16
- package/dist/cjs/utils/callouts.cjs +0 -137
- package/dist/cjs/utils/date.cjs +0 -87
- package/dist/cjs/utils/index.cjs +0 -28
- package/dist/cjs/utils/payments.cjs +0 -53
- package/dist/cjs/utils/rules.cjs +0 -109
- package/dist/esm/search/operators.js +0 -62
- package/dist/esm/types/api-key-filter-name.js +0 -0
- package/dist/esm/types/array-filter-args.js +0 -0
- package/dist/esm/types/base-callout-component-schema.js +0 -0
- package/dist/esm/types/base-filter-args.js +0 -0
- package/dist/esm/types/base-validated-rule.js +0 -0
- package/dist/esm/types/callout-component-schema.js +0 -0
- package/dist/esm/types/callout-filter-name.js +0 -0
- package/dist/esm/types/callout-form-schema.js +0 -0
- package/dist/esm/types/callout-navigation-schema.js +0 -0
- package/dist/esm/types/callout-response-answer-address.js +0 -0
- package/dist/esm/types/callout-response-answer-file-upload.js +0 -0
- package/dist/esm/types/callout-response-answer.js +0 -0
- package/dist/esm/types/callout-response-answers.js +0 -0
- package/dist/esm/types/callout-response-comment-filter-name.js +0 -0
- package/dist/esm/types/callout-response-filter-name.js +0 -0
- package/dist/esm/types/callout-slide-schema.js +0 -0
- package/dist/esm/types/callout-tag-filter-name.js +0 -0
- package/dist/esm/types/content-callout-component-schema.js +0 -0
- package/dist/esm/types/date-unit.js +0 -0
- package/dist/esm/types/duration.js +0 -0
- package/dist/esm/types/enum-filter-args.js +0 -0
- package/dist/esm/types/feeable.js +0 -0
- package/dist/esm/types/filter-args.js +0 -0
- package/dist/esm/types/filter-type.js +0 -0
- package/dist/esm/types/filters.js +0 -0
- package/dist/esm/types/index.js +0 -50
- package/dist/esm/types/input-callout-component-schema.js +0 -0
- package/dist/esm/types/input-file-callout-component-schema.js +0 -0
- package/dist/esm/types/nestable-callout-component-schema.js +0 -0
- package/dist/esm/types/notice-filter-name.js +0 -0
- package/dist/esm/types/operators-by-type.js +0 -0
- package/dist/esm/types/other-filter-args.js +0 -0
- package/dist/esm/types/paginated-query.js +0 -0
- package/dist/esm/types/paginated.js +0 -0
- package/dist/esm/types/payment-filter-name.js +0 -0
- package/dist/esm/types/radio-callout-component-schema.js +0 -0
- package/dist/esm/types/role-type.js +0 -0
- package/dist/esm/types/rule-group.js +0 -0
- package/dist/esm/types/rule-operator.js +0 -0
- package/dist/esm/types/rule-opperator-params.js +0 -0
- package/dist/esm/types/rule-value.js +0 -0
- package/dist/esm/types/rule.js +0 -0
- package/dist/esm/types/select-callout-component-schema.js +0 -0
- package/dist/esm/types/stripe-fee-country.js +0 -0
- package/dist/esm/types/unit-matches.js +0 -0
- package/dist/esm/types/validated-boolean-rule.js +0 -0
- package/dist/esm/types/validated-number-rule.js +0 -0
- package/dist/esm/types/validated-rule-group.js +0 -0
- package/dist/esm/types/validated-rule-value.js +0 -0
- package/dist/esm/types/validated-rule.js +0 -0
- package/dist/esm/types/validated-string-rule.js +0 -0
- package/dist/esm/utils/index.js +0 -4
- package/dist/types/search/operators.d.ts +0 -128
- package/dist/types/types/api-key-filter-name.d.ts +0 -2
- package/dist/types/types/array-filter-args.d.ts +0 -5
- package/dist/types/types/base-callout-component-schema.d.ts +0 -9
- package/dist/types/types/base-filter-args.d.ts +0 -5
- package/dist/types/types/base-validated-rule.d.ts +0 -9
- package/dist/types/types/callout-component-schema.d.ts +0 -2
- package/dist/types/types/callout-filter-name.d.ts +0 -2
- package/dist/types/types/callout-form-schema.d.ts +0 -4
- package/dist/types/types/callout-navigation-schema.d.ts +0 -6
- package/dist/types/types/callout-response-answer-address.d.ts +0 -9
- package/dist/types/types/callout-response-answer-file-upload.d.ts +0 -3
- package/dist/types/types/callout-response-answer.d.ts +0 -2
- package/dist/types/types/callout-response-answers.d.ts +0 -5
- package/dist/types/types/callout-response-comment-filter-name.d.ts +0 -2
- package/dist/types/types/callout-response-filter-name.d.ts +0 -2
- package/dist/types/types/callout-slide-schema.d.ts +0 -7
- package/dist/types/types/callout-tag-filter-name.d.ts +0 -2
- package/dist/types/types/content-callout-component-schema.d.ts +0 -5
- package/dist/types/types/date-unit.d.ts +0 -2
- package/dist/types/types/duration.d.ts +0 -1
- package/dist/types/types/enum-filter-args.d.ts +0 -5
- package/dist/types/types/feeable.d.ts +0 -6
- package/dist/types/types/filter-args.d.ts +0 -2
- package/dist/types/types/filter-type.d.ts +0 -1
- package/dist/types/types/filters.d.ts +0 -2
- package/dist/types/types/index.d.ts +0 -50
- package/dist/types/types/input-callout-component-schema.d.ts +0 -6
- package/dist/types/types/input-file-callout-component-schema.d.ts +0 -5
- package/dist/types/types/nestable-callout-component-schema.d.ts +0 -6
- package/dist/types/types/notice-filter-name.d.ts +0 -2
- package/dist/types/types/operators-by-type.d.ts +0 -2
- package/dist/types/types/other-filter-args.d.ts +0 -4
- package/dist/types/types/paginated-query.d.ts +0 -8
- package/dist/types/types/paginated.d.ts +0 -6
- package/dist/types/types/payment-filter-name.d.ts +0 -2
- package/dist/types/types/radio-callout-component-schema.d.ts +0 -10
- package/dist/types/types/role-type.d.ts +0 -2
- package/dist/types/types/rule-group.d.ts +0 -5
- package/dist/types/types/rule-operator.d.ts +0 -2
- package/dist/types/types/rule-opperator-params.d.ts +0 -3
- package/dist/types/types/rule-value.d.ts +0 -1
- package/dist/types/types/rule.d.ts +0 -6
- package/dist/types/types/select-callout-component-schema.d.ts +0 -11
- package/dist/types/types/stripe-fee-country.d.ts +0 -1
- package/dist/types/types/unit-matches.d.ts +0 -2
- package/dist/types/types/validated-boolean-rule.d.ts +0 -2
- package/dist/types/types/validated-number-rule.d.ts +0 -2
- package/dist/types/types/validated-rule-group.d.ts +0 -5
- package/dist/types/types/validated-rule-value.d.ts +0 -2
- package/dist/types/types/validated-rule.d.ts +0 -2
- package/dist/types/types/validated-string-rule.d.ts +0 -2
- package/dist/types/utils/index.d.ts +0 -4
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
const equalityOperators = {
|
|
2
|
-
equal: { args: 1 },
|
|
3
|
-
not_equal: { args: 1 }
|
|
4
|
-
};
|
|
5
|
-
const stringOperators = {
|
|
6
|
-
begins_with: { args: 1 },
|
|
7
|
-
ends_with: { args: 1 },
|
|
8
|
-
not_begins_with: { args: 1 },
|
|
9
|
-
not_ends_with: { args: 1 }
|
|
10
|
-
};
|
|
11
|
-
const numericOperators = {
|
|
12
|
-
...equalityOperators,
|
|
13
|
-
between: { args: 2 },
|
|
14
|
-
not_between: { args: 2 },
|
|
15
|
-
less: { args: 1 },
|
|
16
|
-
greater: { args: 1 },
|
|
17
|
-
less_or_equal: { args: 1 },
|
|
18
|
-
greater_or_equal: { args: 1 }
|
|
19
|
-
};
|
|
20
|
-
const arrayOperators = {
|
|
21
|
-
contains: { args: 1 },
|
|
22
|
-
not_contains: { args: 1 }
|
|
23
|
-
};
|
|
24
|
-
const nullableOperators = {
|
|
25
|
-
is_empty: { args: 0 },
|
|
26
|
-
is_not_empty: { args: 0 }
|
|
27
|
-
};
|
|
28
|
-
const operatorsByType = {
|
|
29
|
-
text: { ...equalityOperators, ...arrayOperators, ...stringOperators },
|
|
30
|
-
blob: arrayOperators,
|
|
31
|
-
date: numericOperators,
|
|
32
|
-
number: numericOperators,
|
|
33
|
-
boolean: { equal: equalityOperators.equal },
|
|
34
|
-
array: arrayOperators,
|
|
35
|
-
enum: equalityOperators,
|
|
36
|
-
contact: equalityOperators
|
|
37
|
-
};
|
|
38
|
-
const operatorsByTypeMap = operatorsByType;
|
|
39
|
-
const ruleOperators = [
|
|
40
|
-
"equal",
|
|
41
|
-
"not_equal",
|
|
42
|
-
"less",
|
|
43
|
-
"less_or_equal",
|
|
44
|
-
"greater",
|
|
45
|
-
"greater_or_equal",
|
|
46
|
-
"between",
|
|
47
|
-
"not_between",
|
|
48
|
-
"begins_with",
|
|
49
|
-
"not_begins_with",
|
|
50
|
-
"contains",
|
|
51
|
-
"not_contains",
|
|
52
|
-
"ends_with",
|
|
53
|
-
"not_ends_with",
|
|
54
|
-
"is_empty",
|
|
55
|
-
"is_not_empty"
|
|
56
|
-
];
|
|
57
|
-
export {
|
|
58
|
-
nullableOperators,
|
|
59
|
-
operatorsByType,
|
|
60
|
-
operatorsByTypeMap,
|
|
61
|
-
ruleOperators
|
|
62
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/types/index.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export * from "./api-key-filter-name.js";
|
|
2
|
-
export * from "./array-filter-args.js";
|
|
3
|
-
export * from "./base-callout-component-schema.js";
|
|
4
|
-
export * from "./base-filter-args.js";
|
|
5
|
-
export * from "./base-validated-rule.js";
|
|
6
|
-
export * from "./callout-component-schema.js";
|
|
7
|
-
export * from "./callout-filter-name.js";
|
|
8
|
-
export * from "./callout-form-schema.js";
|
|
9
|
-
export * from "./callout-navigation-schema.js";
|
|
10
|
-
export * from "./callout-response-answer-address.js";
|
|
11
|
-
export * from "./callout-response-answer-file-upload.js";
|
|
12
|
-
export * from "./callout-response-answer.js";
|
|
13
|
-
export * from "./callout-response-answers.js";
|
|
14
|
-
export * from "./callout-response-comment-filter-name.js";
|
|
15
|
-
export * from "./callout-response-filter-name.js";
|
|
16
|
-
export * from "./callout-slide-schema.js";
|
|
17
|
-
export * from "./callout-tag-filter-name.js";
|
|
18
|
-
export * from "./content-callout-component-schema.js";
|
|
19
|
-
export * from "./date-unit.js";
|
|
20
|
-
export * from "./duration.js";
|
|
21
|
-
export * from "./enum-filter-args.js";
|
|
22
|
-
export * from "./feeable.js";
|
|
23
|
-
export * from "./filter-args.js";
|
|
24
|
-
export * from "./filter-type.js";
|
|
25
|
-
export * from "./filters.js";
|
|
26
|
-
export * from "./input-callout-component-schema.js";
|
|
27
|
-
export * from "./input-file-callout-component-schema.js";
|
|
28
|
-
export * from "./nestable-callout-component-schema.js";
|
|
29
|
-
export * from "./notice-filter-name.js";
|
|
30
|
-
export * from "./operators-by-type.js";
|
|
31
|
-
export * from "./other-filter-args.js";
|
|
32
|
-
export * from "./paginated-query.js";
|
|
33
|
-
export * from "./paginated.js";
|
|
34
|
-
export * from "./payment-filter-name.js";
|
|
35
|
-
export * from "./radio-callout-component-schema.js";
|
|
36
|
-
export * from "./role-type.js";
|
|
37
|
-
export * from "./rule-group.js";
|
|
38
|
-
export * from "./rule-operator.js";
|
|
39
|
-
export * from "./rule-opperator-params.js";
|
|
40
|
-
export * from "./rule-value.js";
|
|
41
|
-
export * from "./rule.js";
|
|
42
|
-
export * from "./select-callout-component-schema.js";
|
|
43
|
-
export * from "./stripe-fee-country.js";
|
|
44
|
-
export * from "./unit-matches.js";
|
|
45
|
-
export * from "./validated-boolean-rule.js";
|
|
46
|
-
export * from "./validated-number-rule.js";
|
|
47
|
-
export * from "./validated-rule-group.js";
|
|
48
|
-
export * from "./validated-rule-value.js";
|
|
49
|
-
export * from "./validated-rule.js";
|
|
50
|
-
export * from "./validated-string-rule.js";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/types/rule.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/esm/utils/index.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import type { OperatorsByType } from "../types/index.ts";
|
|
2
|
-
export declare const nullableOperators: {
|
|
3
|
-
is_empty: {
|
|
4
|
-
args: number;
|
|
5
|
-
};
|
|
6
|
-
is_not_empty: {
|
|
7
|
-
args: number;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const operatorsByType: {
|
|
11
|
-
readonly text: {
|
|
12
|
-
readonly begins_with: {
|
|
13
|
-
args: number;
|
|
14
|
-
};
|
|
15
|
-
readonly ends_with: {
|
|
16
|
-
args: number;
|
|
17
|
-
};
|
|
18
|
-
readonly not_begins_with: {
|
|
19
|
-
args: number;
|
|
20
|
-
};
|
|
21
|
-
readonly not_ends_with: {
|
|
22
|
-
args: number;
|
|
23
|
-
};
|
|
24
|
-
readonly contains: {
|
|
25
|
-
args: number;
|
|
26
|
-
};
|
|
27
|
-
readonly not_contains: {
|
|
28
|
-
args: number;
|
|
29
|
-
};
|
|
30
|
-
readonly equal: {
|
|
31
|
-
args: number;
|
|
32
|
-
};
|
|
33
|
-
readonly not_equal: {
|
|
34
|
-
args: number;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
readonly blob: {
|
|
38
|
-
contains: {
|
|
39
|
-
args: number;
|
|
40
|
-
};
|
|
41
|
-
not_contains: {
|
|
42
|
-
args: number;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
readonly date: {
|
|
46
|
-
between: {
|
|
47
|
-
args: number;
|
|
48
|
-
};
|
|
49
|
-
not_between: {
|
|
50
|
-
args: number;
|
|
51
|
-
};
|
|
52
|
-
less: {
|
|
53
|
-
args: number;
|
|
54
|
-
};
|
|
55
|
-
greater: {
|
|
56
|
-
args: number;
|
|
57
|
-
};
|
|
58
|
-
less_or_equal: {
|
|
59
|
-
args: number;
|
|
60
|
-
};
|
|
61
|
-
greater_or_equal: {
|
|
62
|
-
args: number;
|
|
63
|
-
};
|
|
64
|
-
equal: {
|
|
65
|
-
args: number;
|
|
66
|
-
};
|
|
67
|
-
not_equal: {
|
|
68
|
-
args: number;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
readonly number: {
|
|
72
|
-
between: {
|
|
73
|
-
args: number;
|
|
74
|
-
};
|
|
75
|
-
not_between: {
|
|
76
|
-
args: number;
|
|
77
|
-
};
|
|
78
|
-
less: {
|
|
79
|
-
args: number;
|
|
80
|
-
};
|
|
81
|
-
greater: {
|
|
82
|
-
args: number;
|
|
83
|
-
};
|
|
84
|
-
less_or_equal: {
|
|
85
|
-
args: number;
|
|
86
|
-
};
|
|
87
|
-
greater_or_equal: {
|
|
88
|
-
args: number;
|
|
89
|
-
};
|
|
90
|
-
equal: {
|
|
91
|
-
args: number;
|
|
92
|
-
};
|
|
93
|
-
not_equal: {
|
|
94
|
-
args: number;
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
readonly boolean: {
|
|
98
|
-
readonly equal: {
|
|
99
|
-
args: number;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly array: {
|
|
103
|
-
contains: {
|
|
104
|
-
args: number;
|
|
105
|
-
};
|
|
106
|
-
not_contains: {
|
|
107
|
-
args: number;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
readonly enum: {
|
|
111
|
-
equal: {
|
|
112
|
-
args: number;
|
|
113
|
-
};
|
|
114
|
-
not_equal: {
|
|
115
|
-
args: number;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
readonly contact: {
|
|
119
|
-
equal: {
|
|
120
|
-
args: number;
|
|
121
|
-
};
|
|
122
|
-
not_equal: {
|
|
123
|
-
args: number;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
export declare const operatorsByTypeMap: OperatorsByType;
|
|
128
|
-
export declare const ruleOperators: readonly ["equal", "not_equal", "less", "less_or_equal", "greater", "greater_or_equal", "between", "not_between", "begins_with", "not_begins_with", "contains", "not_contains", "ends_with", "not_ends_with", "is_empty", "is_not_empty"];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FilterType, ValidatedRuleValue } from "./index.ts";
|
|
2
|
-
import type { operatorsByType } from "../search/operators.ts";
|
|
3
|
-
export interface BaseValidatedRule<T extends FilterType, F extends string> {
|
|
4
|
-
type: T;
|
|
5
|
-
field: F;
|
|
6
|
-
nullable: boolean;
|
|
7
|
-
operator: keyof (typeof operatorsByType)[T];
|
|
8
|
-
value: ValidatedRuleValue<T>[];
|
|
9
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import type { ContentCalloutComponentSchema, InputCalloutComponentSchema, NestableCalloutComponentSchema, RadioCalloutComponentSchema, SelectCalloutComponentSchema } from "./index.ts";
|
|
2
|
-
export type CalloutComponentSchema = ContentCalloutComponentSchema | SelectCalloutComponentSchema | RadioCalloutComponentSchema | InputCalloutComponentSchema | NestableCalloutComponentSchema;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CalloutResponseAnswer } from "./index.ts";
|
|
2
|
-
/**
|
|
3
|
-
* Answers are grouped by slide key: {[slideId]: {[componentKey]: answer | answer[]}}
|
|
4
|
-
*/
|
|
5
|
-
export type CalloutResponseAnswers = Record<string, Record<string, CalloutResponseAnswer | CalloutResponseAnswer[]> | undefined>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { Duration } from "date-fns";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type FilterType = "text" | "blob" | "date" | "number" | "boolean" | "array" | "enum" | "contact";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export * from "./api-key-filter-name.ts";
|
|
2
|
-
export * from "./array-filter-args.ts";
|
|
3
|
-
export * from "./base-callout-component-schema.ts";
|
|
4
|
-
export * from "./base-filter-args.ts";
|
|
5
|
-
export * from "./base-validated-rule.ts";
|
|
6
|
-
export * from "./callout-component-schema.ts";
|
|
7
|
-
export * from "./callout-filter-name.ts";
|
|
8
|
-
export * from "./callout-form-schema.ts";
|
|
9
|
-
export * from "./callout-navigation-schema.ts";
|
|
10
|
-
export * from "./callout-response-answer-address.ts";
|
|
11
|
-
export * from "./callout-response-answer-file-upload.ts";
|
|
12
|
-
export * from "./callout-response-answer.ts";
|
|
13
|
-
export * from "./callout-response-answers.ts";
|
|
14
|
-
export * from "./callout-response-comment-filter-name.ts";
|
|
15
|
-
export * from "./callout-response-filter-name.ts";
|
|
16
|
-
export * from "./callout-slide-schema.ts";
|
|
17
|
-
export * from "./callout-tag-filter-name.ts";
|
|
18
|
-
export * from "./content-callout-component-schema.ts";
|
|
19
|
-
export * from "./date-unit.ts";
|
|
20
|
-
export * from "./duration.ts";
|
|
21
|
-
export * from "./enum-filter-args.ts";
|
|
22
|
-
export * from "./feeable.ts";
|
|
23
|
-
export * from "./filter-args.ts";
|
|
24
|
-
export * from "./filter-type.ts";
|
|
25
|
-
export * from "./filters.ts";
|
|
26
|
-
export * from "./input-callout-component-schema.ts";
|
|
27
|
-
export * from "./input-file-callout-component-schema.ts";
|
|
28
|
-
export * from "./nestable-callout-component-schema.ts";
|
|
29
|
-
export * from "./notice-filter-name.ts";
|
|
30
|
-
export * from "./operators-by-type.ts";
|
|
31
|
-
export * from "./other-filter-args.ts";
|
|
32
|
-
export * from "./paginated-query.ts";
|
|
33
|
-
export * from "./paginated.ts";
|
|
34
|
-
export * from "./payment-filter-name.ts";
|
|
35
|
-
export * from "./radio-callout-component-schema.ts";
|
|
36
|
-
export * from "./role-type.ts";
|
|
37
|
-
export * from "./rule-group.ts";
|
|
38
|
-
export * from "./rule-operator.ts";
|
|
39
|
-
export * from "./rule-opperator-params.ts";
|
|
40
|
-
export * from "./rule-value.ts";
|
|
41
|
-
export * from "./rule.ts";
|
|
42
|
-
export * from "./select-callout-component-schema.ts";
|
|
43
|
-
export * from "./stripe-fee-country.ts";
|
|
44
|
-
export * from "./unit-matches.ts";
|
|
45
|
-
export * from "./validated-boolean-rule.ts";
|
|
46
|
-
export * from "./validated-number-rule.ts";
|
|
47
|
-
export * from "./validated-rule-group.ts";
|
|
48
|
-
export * from "./validated-rule-value.ts";
|
|
49
|
-
export * from "./validated-rule.ts";
|
|
50
|
-
export * from "./validated-string-rule.ts";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { BaseCalloutComponentSchema } from "./index.ts";
|
|
2
|
-
export interface InputCalloutComponentSchema extends BaseCalloutComponentSchema {
|
|
3
|
-
type: "address" | "button" | "checkbox" | "email" | "file" | "number" | "password" | "textfield" | "textarea" | "content" | "phoneNumber" | "currency" | "datetime" | "time" | "url" | "signature";
|
|
4
|
-
input: true;
|
|
5
|
-
placeholder?: string;
|
|
6
|
-
}
|