@voltade/envoy-sdk 1.4.1 → 1.4.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 +5 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -13
- package/dist/index.js.map +1 -1
- package/dist/resources/companies/index.d.ts +3 -28
- package/dist/resources/companies/index.d.ts.map +1 -1
- package/dist/resources/companies/index.js +3 -42
- package/dist/resources/companies/index.js.map +1 -1
- package/dist/resources/companies/types.d.ts +0 -41
- package/dist/resources/companies/types.d.ts.map +1 -1
- package/dist/resources/companies/types.js +0 -4
- package/dist/resources/companies/types.js.map +1 -1
- package/dist/resources/contacts/index.d.ts +3 -36
- package/dist/resources/contacts/index.d.ts.map +1 -1
- package/dist/resources/contacts/index.js +2 -42
- package/dist/resources/contacts/index.js.map +1 -1
- package/dist/resources/contacts/types.d.ts +0 -41
- package/dist/resources/contacts/types.d.ts.map +1 -1
- package/dist/resources/contacts/types.js +0 -4
- package/dist/resources/contacts/types.js.map +1 -1
- package/dist/resources/index.d.ts +0 -1
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +0 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/orders/index.d.ts +5 -22
- package/dist/resources/orders/index.d.ts.map +1 -1
- package/dist/resources/orders/index.js +7 -24
- package/dist/resources/orders/index.js.map +1 -1
- package/dist/resources/orders/types.d.ts +3 -38
- package/dist/resources/orders/types.d.ts.map +1 -1
- package/dist/resources/orders/types.js +1 -3
- package/dist/resources/orders/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/resources/filters.d.ts +0 -172
- package/dist/resources/filters.d.ts.map +0 -1
- package/dist/resources/filters.js +0 -299
- package/dist/resources/filters.js.map +0 -1
|
@@ -15,8 +15,6 @@ export declare class Orders extends BaseResource {
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```typescript
|
|
18
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
19
|
-
*
|
|
20
18
|
* // List orders with default pagination
|
|
21
19
|
* const response = await client.orders.list();
|
|
22
20
|
* console.log(response.data); // Array of orders
|
|
@@ -32,28 +30,13 @@ export declare class Orders extends BaseResource {
|
|
|
32
30
|
* const response = await client.orders.list({
|
|
33
31
|
* since: '2024-01-01',
|
|
34
32
|
* until: '2024-12-31',
|
|
35
|
-
* sort:
|
|
36
|
-
* });
|
|
37
|
-
*
|
|
38
|
-
* // List paid orders from the last 7 days
|
|
39
|
-
* const response = await client.orders.list({
|
|
40
|
-
* filters: [
|
|
41
|
-
* filters.eq('payment_status', ['paid']),
|
|
42
|
-
* filters.dateWithinLast('created_at', 7, 'days'),
|
|
43
|
-
* ]
|
|
44
|
-
* });
|
|
45
|
-
*
|
|
46
|
-
* // List orders with total > $100
|
|
47
|
-
* const response = await client.orders.list({
|
|
48
|
-
* filters: [
|
|
49
|
-
* filters.gt('total_amount', 100),
|
|
50
|
-
* ]
|
|
33
|
+
* sort: '-created_at'
|
|
51
34
|
* });
|
|
52
35
|
*
|
|
53
|
-
* // List orders
|
|
36
|
+
* // List orders with advanced filtering
|
|
54
37
|
* const response = await client.orders.list({
|
|
55
|
-
*
|
|
56
|
-
*
|
|
38
|
+
* payload: [
|
|
39
|
+
* { field: 'payment_status', operator: 'eq', value: 'paid' }
|
|
57
40
|
* ]
|
|
58
41
|
* });
|
|
59
42
|
* ```
|
|
@@ -90,6 +73,6 @@ export declare class Orders extends BaseResource {
|
|
|
90
73
|
*/
|
|
91
74
|
upsert(params: UpsertOrderParams): Promise<UpsertOrderResponse>;
|
|
92
75
|
}
|
|
93
|
-
export type { FulfillmentStatus, ListOrdersParams, ListOrdersResponse, Order,
|
|
76
|
+
export type { FulfillmentStatus, ListOrdersParams, ListOrdersResponse, Order, OrdersMeta, PartyableType, PaymentStatus, UpsertOrderParams, UpsertOrderRequest, UpsertOrderResponse, UpsertOrderResponsePayload, } from "./types.js";
|
|
94
77
|
export { FulfillmentStatusSchema, ListOrdersParamsSchema, ListOrdersResponseSchema, OrdersMetaSchema, OrderSchema, PartyableTypeSchema, PaymentStatusSchema, UpsertOrderParamsSchema, UpsertOrderRequestSchema, UpsertOrderResponsePayloadSchema, UpsertOrderResponseSchema, } from "./types.js";
|
|
95
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/orders/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,MAAO,SAAQ,YAAY;IACtC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/orders/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,qBAAa,MAAO,SAAQ,YAAY;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4BlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACG,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAKtE;AAGD,YAAY,EACV,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,UAAU,EACV,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,YAAY,CAAC"}
|
|
@@ -14,8 +14,6 @@ export class Orders extends BaseResource {
|
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* ```typescript
|
|
17
|
-
* import { filters, sort } from 'envoy-sdk';
|
|
18
|
-
*
|
|
19
17
|
* // List orders with default pagination
|
|
20
18
|
* const response = await client.orders.list();
|
|
21
19
|
* console.log(response.data); // Array of orders
|
|
@@ -31,28 +29,13 @@ export class Orders extends BaseResource {
|
|
|
31
29
|
* const response = await client.orders.list({
|
|
32
30
|
* since: '2024-01-01',
|
|
33
31
|
* until: '2024-12-31',
|
|
34
|
-
* sort:
|
|
35
|
-
* });
|
|
36
|
-
*
|
|
37
|
-
* // List paid orders from the last 7 days
|
|
38
|
-
* const response = await client.orders.list({
|
|
39
|
-
* filters: [
|
|
40
|
-
* filters.eq('payment_status', ['paid']),
|
|
41
|
-
* filters.dateWithinLast('created_at', 7, 'days'),
|
|
42
|
-
* ]
|
|
43
|
-
* });
|
|
44
|
-
*
|
|
45
|
-
* // List orders with total > $100
|
|
46
|
-
* const response = await client.orders.list({
|
|
47
|
-
* filters: [
|
|
48
|
-
* filters.gt('total_amount', 100),
|
|
49
|
-
* ]
|
|
32
|
+
* sort: '-created_at'
|
|
50
33
|
* });
|
|
51
34
|
*
|
|
52
|
-
* // List orders
|
|
35
|
+
* // List orders with advanced filtering
|
|
53
36
|
* const response = await client.orders.list({
|
|
54
|
-
*
|
|
55
|
-
*
|
|
37
|
+
* payload: [
|
|
38
|
+
* { field: 'payment_status', operator: 'eq', value: 'paid' }
|
|
56
39
|
* ]
|
|
57
40
|
* });
|
|
58
41
|
* ```
|
|
@@ -74,9 +57,9 @@ export class Orders extends BaseResource {
|
|
|
74
57
|
if (params?.sort) {
|
|
75
58
|
queryParams.sort = params.sort;
|
|
76
59
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
queryParams.payload = JSON.stringify(params.
|
|
60
|
+
if (params?.payload) {
|
|
61
|
+
// Convert payload array to JSON string for query parameter
|
|
62
|
+
queryParams.payload = JSON.stringify(params.payload);
|
|
80
63
|
}
|
|
81
64
|
return await this.client.get("/orders", {
|
|
82
65
|
params: queryParams,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/orders/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQnD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,YAAY;IACtC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../resources/orders/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQnD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,YAAY;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACH,KAAK,CAAC,IAAI,CAAC,MAAyB;QAClC,MAAM,WAAW,GAAoC,EAAE,CAAC;QAExD,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS,EAAE,CAAC;YAC/B,WAAW,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,QAAQ,KAAK,SAAS,EAAE,CAAC;YACnC,WAAW,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QACzC,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,EAAE,CAAC;YAClB,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,EAAE,CAAC;YAClB,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,IAAI,EAAE,CAAC;YACjB,WAAW,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,OAAO,EAAE,CAAC;YACpB,2DAA2D;YAC3D,WAAW,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACvD,CAAC;QAED,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAqB,SAAS,EAAE;YAC1D,MAAM,EAAE,WAAW;SACpB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,KAAK,CAAC,MAAM,CAAC,MAAyB;QACpC,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAsB,gBAAgB,EAAE;YACnE,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;CACF;AAiBD,wBAAwB;AACxB,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACxB,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,YAAY,CAAC"}
|
|
@@ -524,48 +524,17 @@ export declare const ListOrdersParamsSchema: z.ZodObject<{
|
|
|
524
524
|
since: z.ZodOptional<z.ZodString>;
|
|
525
525
|
until: z.ZodOptional<z.ZodString>;
|
|
526
526
|
sort: z.ZodOptional<z.ZodString>;
|
|
527
|
-
|
|
528
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
529
|
-
attribute_key: z.ZodString;
|
|
530
|
-
filter_operator: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present", "is_greater_than", "is_less_than", "date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today", "in", "not_in"]>;
|
|
531
|
-
values: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
532
|
-
query_operator: z.ZodEnum<["and", "or"]>;
|
|
533
|
-
attribute_model: z.ZodOptional<z.ZodEnum<["standard", "customAttributes"]>>;
|
|
534
|
-
}, "strip", z.ZodTypeAny, {
|
|
535
|
-
values: string | number | boolean | (string | number)[];
|
|
536
|
-
attribute_key: string;
|
|
537
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
538
|
-
query_operator: "and" | "or";
|
|
539
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
540
|
-
}, {
|
|
541
|
-
values: string | number | boolean | (string | number)[];
|
|
542
|
-
attribute_key: string;
|
|
543
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
544
|
-
query_operator: "and" | "or";
|
|
545
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
546
|
-
}>, "many">>;
|
|
527
|
+
payload: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
|
|
547
528
|
}, "strip", z.ZodTypeAny, {
|
|
548
529
|
page: number;
|
|
549
530
|
per_page: number;
|
|
550
531
|
sort?: string | undefined;
|
|
551
|
-
|
|
552
|
-
values: string | number | boolean | (string | number)[];
|
|
553
|
-
attribute_key: string;
|
|
554
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
555
|
-
query_operator: "and" | "or";
|
|
556
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
557
|
-
}[] | undefined;
|
|
532
|
+
payload?: Record<string, unknown>[] | undefined;
|
|
558
533
|
since?: string | undefined;
|
|
559
534
|
until?: string | undefined;
|
|
560
535
|
}, {
|
|
561
536
|
sort?: string | undefined;
|
|
562
|
-
|
|
563
|
-
values: string | number | boolean | (string | number)[];
|
|
564
|
-
attribute_key: string;
|
|
565
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
566
|
-
query_operator: "and" | "or";
|
|
567
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
568
|
-
}[] | undefined;
|
|
537
|
+
payload?: Record<string, unknown>[] | undefined;
|
|
569
538
|
page?: number | undefined;
|
|
570
539
|
per_page?: number | undefined;
|
|
571
540
|
since?: string | undefined;
|
|
@@ -630,10 +599,6 @@ export declare const ListOrdersResponseSchema: z.ZodObject<{
|
|
|
630
599
|
};
|
|
631
600
|
data: Record<string, unknown>[];
|
|
632
601
|
}>;
|
|
633
|
-
/**
|
|
634
|
-
* Order filter attribute keys (standard fields)
|
|
635
|
-
*/
|
|
636
|
-
export type OrderFilterAttribute = "name" | "company_name" | "contact_name" | "payment_status" | "fulfillment_status" | "total_amount" | "currency_code" | "source" | "created_at" | "updated_at" | "line_item_part_number" | "line_item_description" | (string & {});
|
|
637
602
|
/**
|
|
638
603
|
* TypeScript Types (inferred from Zod schemas)
|
|
639
604
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAGH,eAAO,MAAM,WAAW,wCAAwB,CAAC;AAGjD,eAAO,MAAM,mBAAmB,mCAAiC,CAAC;AAElE,eAAO,MAAM,mBAAmB,4GAQ9B,CAAC;AAEH,eAAO,MAAM,uBAAuB,4EAKlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAI9B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAelC,CAAC;AAGH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAGH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C1E,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAC9C,OAAO,gCAAgC,CACxC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { FilterConditionSchema } from "../filters.js";
|
|
3
2
|
/**
|
|
4
3
|
* Zod Schemas for Orders
|
|
5
4
|
*/
|
|
@@ -84,8 +83,7 @@ export const ListOrdersParamsSchema = z.object({
|
|
|
84
83
|
since: z.string().optional(),
|
|
85
84
|
until: z.string().optional(),
|
|
86
85
|
sort: z.string().optional(),
|
|
87
|
-
|
|
88
|
-
filters: z.array(FilterConditionSchema).optional(),
|
|
86
|
+
payload: z.array(z.record(z.unknown())).optional(),
|
|
89
87
|
});
|
|
90
88
|
// List orders response meta schema
|
|
91
89
|
export const OrdersMetaSchema = z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../resources/orders/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,mDAAmD;AACnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;AAEjD,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;AAElE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC;IACxC,SAAS;IACT,YAAY;IACZ,MAAM;IACN,oBAAoB;IACpB,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AC,MAAM,EAAE;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CAC/B,CAAC,CAAC;AAEH,8BAA8B;AAC9B,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC;CAC3B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Filter operators for text fields
|
|
4
|
-
*/
|
|
5
|
-
export declare const TextFilterOperatorSchema: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present"]>;
|
|
6
|
-
/**
|
|
7
|
-
* Filter operators for number fields
|
|
8
|
-
*/
|
|
9
|
-
export declare const NumberFilterOperatorSchema: z.ZodEnum<["equal_to", "not_equal_to", "is_greater_than", "is_less_than"]>;
|
|
10
|
-
/**
|
|
11
|
-
* Filter operators for date fields
|
|
12
|
-
*/
|
|
13
|
-
export declare const DateFilterOperatorSchema: z.ZodEnum<["date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today"]>;
|
|
14
|
-
/**
|
|
15
|
-
* Filter operators for list/select fields
|
|
16
|
-
*/
|
|
17
|
-
export declare const ListFilterOperatorSchema: z.ZodEnum<["equal_to", "not_equal_to", "in", "not_in"]>;
|
|
18
|
-
/**
|
|
19
|
-
* Filter operators for boolean fields
|
|
20
|
-
*/
|
|
21
|
-
export declare const BooleanFilterOperatorSchema: z.ZodEnum<["equal_to", "not_equal_to"]>;
|
|
22
|
-
/**
|
|
23
|
-
* All possible filter operators
|
|
24
|
-
*/
|
|
25
|
-
export declare const FilterOperatorSchema: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present", "is_greater_than", "is_less_than", "date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today", "in", "not_in"]>;
|
|
26
|
-
/**
|
|
27
|
-
* Query operator for combining conditions
|
|
28
|
-
*/
|
|
29
|
-
export declare const QueryOperatorSchema: z.ZodEnum<["and", "or"]>;
|
|
30
|
-
/**
|
|
31
|
-
* Attribute model type
|
|
32
|
-
*/
|
|
33
|
-
export declare const AttributeModelSchema: z.ZodEnum<["standard", "customAttributes"]>;
|
|
34
|
-
/**
|
|
35
|
-
* Date unit for relative date filters
|
|
36
|
-
*/
|
|
37
|
-
export declare const DateUnitSchema: z.ZodEnum<["days", "weeks", "months"]>;
|
|
38
|
-
/**
|
|
39
|
-
* Filter condition schema - the core building block
|
|
40
|
-
*/
|
|
41
|
-
export declare const FilterConditionSchema: z.ZodObject<{
|
|
42
|
-
/** Field to filter on */
|
|
43
|
-
attribute_key: z.ZodString;
|
|
44
|
-
/** Operator to use for comparison */
|
|
45
|
-
filter_operator: z.ZodEnum<["equal_to", "not_equal_to", "contains", "does_not_contain", "matches_phrase", "does_not_match_phrase", "starts_with", "is_present", "is_not_present", "is_greater_than", "is_less_than", "date_is", "date_is_before", "date_is_after", "date_is_between", "date_within_last_n", "date_within_next_n", "date_more_than_n_ago", "date_is_n_from_today", "in", "not_in"]>;
|
|
46
|
-
/** Value(s) to match - can be string, array, or tuple for date ranges */
|
|
47
|
-
values: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>;
|
|
48
|
-
/** How to combine with the NEXT condition (last one is ignored) */
|
|
49
|
-
query_operator: z.ZodEnum<["and", "or"]>;
|
|
50
|
-
/** Optional: specify if this is a standard or custom attribute */
|
|
51
|
-
attribute_model: z.ZodOptional<z.ZodEnum<["standard", "customAttributes"]>>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
values: string | number | boolean | (string | number)[];
|
|
54
|
-
attribute_key: string;
|
|
55
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
56
|
-
query_operator: "and" | "or";
|
|
57
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
values: string | number | boolean | (string | number)[];
|
|
60
|
-
attribute_key: string;
|
|
61
|
-
filter_operator: "equal_to" | "not_equal_to" | "contains" | "does_not_contain" | "matches_phrase" | "does_not_match_phrase" | "starts_with" | "is_present" | "is_not_present" | "is_greater_than" | "is_less_than" | "date_is" | "date_is_before" | "date_is_after" | "date_is_between" | "date_within_last_n" | "date_within_next_n" | "date_more_than_n_ago" | "date_is_n_from_today" | "in" | "not_in";
|
|
62
|
-
query_operator: "and" | "or";
|
|
63
|
-
attribute_model?: "standard" | "customAttributes" | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
/**
|
|
66
|
-
* TypeScript Types
|
|
67
|
-
*/
|
|
68
|
-
export type TextFilterOperator = z.infer<typeof TextFilterOperatorSchema>;
|
|
69
|
-
export type NumberFilterOperator = z.infer<typeof NumberFilterOperatorSchema>;
|
|
70
|
-
export type DateFilterOperator = z.infer<typeof DateFilterOperatorSchema>;
|
|
71
|
-
export type ListFilterOperator = z.infer<typeof ListFilterOperatorSchema>;
|
|
72
|
-
export type BooleanFilterOperator = z.infer<typeof BooleanFilterOperatorSchema>;
|
|
73
|
-
export type FilterOperator = z.infer<typeof FilterOperatorSchema>;
|
|
74
|
-
export type QueryOperator = z.infer<typeof QueryOperatorSchema>;
|
|
75
|
-
export type AttributeModel = z.infer<typeof AttributeModelSchema>;
|
|
76
|
-
export type DateUnit = z.infer<typeof DateUnitSchema>;
|
|
77
|
-
export type FilterCondition = z.infer<typeof FilterConditionSchema>;
|
|
78
|
-
/**
|
|
79
|
-
* Helper type for building filters with better DX
|
|
80
|
-
*/
|
|
81
|
-
export type FilterValue = string | number | boolean | string[] | number[] | [number, DateUnit];
|
|
82
|
-
/**
|
|
83
|
-
* Helper functions for creating filter conditions
|
|
84
|
-
*/
|
|
85
|
-
export declare const filters: {
|
|
86
|
-
/**
|
|
87
|
-
* Create a text equality filter
|
|
88
|
-
*/
|
|
89
|
-
eq: (key: string, value: string | string[], queryOp?: QueryOperator) => FilterCondition;
|
|
90
|
-
/**
|
|
91
|
-
* Create a text not equal filter
|
|
92
|
-
*/
|
|
93
|
-
notEq: (key: string, value: string | string[], queryOp?: QueryOperator) => FilterCondition;
|
|
94
|
-
/**
|
|
95
|
-
* Create a contains filter (text fields)
|
|
96
|
-
*/
|
|
97
|
-
contains: (key: string, value: string, queryOp?: QueryOperator) => FilterCondition;
|
|
98
|
-
/**
|
|
99
|
-
* Create a does not contain filter (text fields)
|
|
100
|
-
*/
|
|
101
|
-
notContains: (key: string, value: string, queryOp?: QueryOperator) => FilterCondition;
|
|
102
|
-
/**
|
|
103
|
-
* Create a starts with filter
|
|
104
|
-
*/
|
|
105
|
-
startsWith: (key: string, value: string, queryOp?: QueryOperator) => FilterCondition;
|
|
106
|
-
/**
|
|
107
|
-
* Create a "value is present" filter
|
|
108
|
-
*/
|
|
109
|
-
isPresent: (key: string, queryOp?: QueryOperator) => FilterCondition;
|
|
110
|
-
/**
|
|
111
|
-
* Create a "value is not present" filter
|
|
112
|
-
*/
|
|
113
|
-
isNotPresent: (key: string, queryOp?: QueryOperator) => FilterCondition;
|
|
114
|
-
/**
|
|
115
|
-
* Create an "in list" filter
|
|
116
|
-
*/
|
|
117
|
-
in: (key: string, values: string[], queryOp?: QueryOperator) => FilterCondition;
|
|
118
|
-
/**
|
|
119
|
-
* Create a "not in list" filter
|
|
120
|
-
*/
|
|
121
|
-
notIn: (key: string, values: string[], queryOp?: QueryOperator) => FilterCondition;
|
|
122
|
-
/**
|
|
123
|
-
* Create a greater than filter (number fields)
|
|
124
|
-
*/
|
|
125
|
-
gt: (key: string, value: number, queryOp?: QueryOperator) => FilterCondition;
|
|
126
|
-
/**
|
|
127
|
-
* Create a less than filter (number fields)
|
|
128
|
-
*/
|
|
129
|
-
lt: (key: string, value: number, queryOp?: QueryOperator) => FilterCondition;
|
|
130
|
-
/**
|
|
131
|
-
* Create a date equals filter
|
|
132
|
-
*/
|
|
133
|
-
dateIs: (key: string, date: string, queryOp?: QueryOperator) => FilterCondition;
|
|
134
|
-
/**
|
|
135
|
-
* Create a date before filter
|
|
136
|
-
*/
|
|
137
|
-
dateBefore: (key: string, date: string, queryOp?: QueryOperator) => FilterCondition;
|
|
138
|
-
/**
|
|
139
|
-
* Create a date after filter
|
|
140
|
-
*/
|
|
141
|
-
dateAfter: (key: string, date: string, queryOp?: QueryOperator) => FilterCondition;
|
|
142
|
-
/**
|
|
143
|
-
* Create a date between filter
|
|
144
|
-
*/
|
|
145
|
-
dateBetween: (key: string, startDate: string, endDate: string, queryOp?: QueryOperator) => FilterCondition;
|
|
146
|
-
/**
|
|
147
|
-
* Create a "within last N days/weeks/months" filter
|
|
148
|
-
*/
|
|
149
|
-
dateWithinLast: (key: string, n: number, unit: DateUnit, queryOp?: QueryOperator) => FilterCondition;
|
|
150
|
-
/**
|
|
151
|
-
* Create a "within next N days/weeks/months" filter
|
|
152
|
-
*/
|
|
153
|
-
dateWithinNext: (key: string, n: number, unit: DateUnit, queryOp?: QueryOperator) => FilterCondition;
|
|
154
|
-
/**
|
|
155
|
-
* Create a "more than N ago" filter
|
|
156
|
-
*/
|
|
157
|
-
dateMoreThanAgo: (key: string, n: number, unit: DateUnit, queryOp?: QueryOperator) => FilterCondition;
|
|
158
|
-
/**
|
|
159
|
-
* Create a custom attribute filter
|
|
160
|
-
*/
|
|
161
|
-
custom: (key: string, operator: FilterOperator, values: FilterValue, queryOp?: QueryOperator) => FilterCondition;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* Sorting helpers
|
|
165
|
-
*/
|
|
166
|
-
export declare const sort: {
|
|
167
|
-
/** Sort ascending */
|
|
168
|
-
asc: (field: string) => string;
|
|
169
|
-
/** Sort descending */
|
|
170
|
-
desc: (field: string) => string;
|
|
171
|
-
};
|
|
172
|
-
//# sourceMappingURL=filters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filters.d.ts","sourceRoot":"","sources":["../../resources/filters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,wBAAwB,mKAUnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B,4EAKrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,0KASnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,yDAKnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,2BAA2B,yCAAuC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,oBAAoB,mXA0B/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB,0BAAwB,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,oBAAoB,6CAA2C,CAAC;AAE7E;;GAEG;AACH,eAAO,MAAM,cAAc,wCAAsC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,qBAAqB;IAChC,yBAAyB;;IAEzB,qCAAqC;;IAErC,yEAAyE;;IAOzE,mEAAmE;;IAEnE,kEAAkE;;;;;;;;;;;;;;EAElE,CAAC;AAEH;;GAEG;A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