@5ss/ai-tools 3.5.0 → 3.6.0
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/CHANGELOG.md +12 -0
- package/README.md +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/vendors/shipstation/index.d.ts +256 -0
- package/dist/vendors/shipstation/index.d.ts.map +1 -0
- package/dist/vendors/shipstation/index.js +261 -0
- package/dist/vendors/shipstation/index.js.map +1 -0
- package/dist/vendors/woocommerce/index.d.ts +28 -28
- package/dist/vendors/woocommerce/index.js +4 -4
- package/dist/vendors/woocommerce/index.js.map +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["#http"],"sources":["../../../src/vendors/shipstation/contracts.ts","../../../src/vendors/shipstation/client.ts","../../../src/vendors/shipstation/module.ts"],"sourcesContent":["import { z } from 'zod'\n\nexport const shipstationAuthSchema = z.object({\n\tapi_key: z.string().min(1).describe('ShipStation V2 API key')\n})\n\nexport type ShipstationAuth = z.infer<typeof shipstationAuthSchema>\n\nconst shipstationPageSchema = z.int().min(1).optional().describe('Provider page number, starting at 1')\nconst shipstationPageSizeSchema = z\n\t.int()\n\t.min(1)\n\t.max(500)\n\t.optional()\n\t.describe('Records per page, from 1 to 500; defaults to 25')\n\nexport const shipstationLabelRawSchema = z.looseObject({\n\tlabel_id: z.string().min(1),\n\tshipment_id: z.string().nullable().optional(),\n\texternal_order_id: z.string().nullable().optional(),\n\ttracking_number: z.string().nullable().optional(),\n\tcreated_at: z.string().nullable().optional(),\n\tmodified_at: z.string().nullable().optional(),\n\tship_date: z.string().nullable().optional(),\n\tvoided_at: z.string().nullable().optional(),\n\tstatus: z.string().nullable().optional()\n})\n\nexport const shipstationShipmentRawSchema = z.looseObject({\n\tshipment_id: z.string().min(1),\n\texternal_order_id: z.string().nullable().optional(),\n\tshipment_number: z.string().nullable().optional(),\n\tcreated_at: z.string().nullable().optional(),\n\tmodified_at: z.string().nullable().optional(),\n\tshipment_status: z.string().nullable().optional()\n})\n\nexport const shipstationPaginationSchema = z.object({\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative(),\n\tpage_size: z.int().min(1).max(500),\n\thas_more: z.boolean()\n})\n\nexport const shipstationListLabelsPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tlabel_status: z.string().min(1).optional().describe('Label status filter'),\n\tservice_code: z.string().min(1).optional().describe('Carrier service code filter'),\n\tcarrier_id: z.string().min(1).optional().describe('ShipStation carrier id filter'),\n\ttracking_number: z.string().min(1).optional().describe('Exact tracking number filter'),\n\tbatch_id: z.string().min(1).optional().describe('ShipStation batch id filter'),\n\trate_id: z.string().min(1).optional().describe('ShipStation rate id filter'),\n\tshipment_id: z.string().min(1).optional().describe('ShipStation shipment id filter'),\n\texternal_shipment_id: z.string().min(1).optional().describe('External shipment id filter'),\n\twarehouse_id: z.string().min(1).optional().describe('ShipStation warehouse id filter'),\n\tcreated_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include labels created at or after this ISO 8601 timestamp'),\n\tcreated_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include labels created at or before this ISO 8601 timestamp'),\n\trefund_status: z.string().min(1).optional().describe('Label refund status filter'),\n\tsort_dir: z.enum(['asc', 'desc']).optional().describe('Provider slice direction; defaults to desc'),\n\tsort_by: z\n\t\t.enum(['modified_at', 'created_at', 'voided_at'])\n\t\t.optional()\n\t\t.describe('Label field used to sort the provider slice')\n})\n\nexport const shipstationListLabelsPageOutputSchema = z.object({\n\titems: z.array(shipstationLabelRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationListShipmentsPageInputSchema = z.strictObject({\n\tpage: shipstationPageSchema,\n\tpage_size: shipstationPageSizeSchema,\n\tshipment_status: z.string().min(1).optional().describe('Shipment status filter'),\n\tbatch_id: z.string().min(1).optional().describe('ShipStation batch id filter'),\n\tpickup_id: z.string().min(1).optional().describe('ShipStation pickup id filter'),\n\tcreated_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments created at or after this ISO 8601 timestamp'),\n\tcreated_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments created at or before this ISO 8601 timestamp'),\n\tmodified_at_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments modified at or after this ISO 8601 timestamp'),\n\tmodified_at_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments modified at or before this ISO 8601 timestamp'),\n\tsales_order_id: z.string().min(1).optional().describe('Sales order id filter'),\n\tshipment_number: z.string().min(1).optional().describe('Shipment number filter'),\n\tship_to_name: z.string().min(1).optional().describe('Recipient name filter'),\n\titem_keyword: z.string().min(1).optional().describe('Shipment item keyword filter'),\n\tpayment_date_start: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments paid at or after this ISO 8601 timestamp'),\n\tpayment_date_end: z.iso\n\t\t.datetime({ offset: true })\n\t\t.optional()\n\t\t.describe('Include shipments paid at or before this ISO 8601 timestamp'),\n\tstore_id: z.string().min(1).optional().describe('ShipStation store id filter'),\n\texternal_shipment_id: z.string().min(1).optional().describe('External shipment id filter'),\n\tsort_dir: z.enum(['asc', 'desc']).optional().describe('Provider slice direction; defaults to desc'),\n\tsort_by: z.enum(['modified_at', 'created_at']).optional().describe('Shipment field used to sort the provider slice')\n})\n\nexport const shipstationListShipmentsPageOutputSchema = z.object({\n\titems: z.array(shipstationShipmentRawSchema),\n\tpagination: shipstationPaginationSchema\n})\n\nexport const shipstationListLabelsResponseSchema = z.looseObject({\n\tlabels: z.array(shipstationLabelRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\n\nexport const shipstationListShipmentsResponseSchema = z.looseObject({\n\tshipments: z.array(shipstationShipmentRawSchema),\n\ttotal: z.int().nonnegative(),\n\tpage: z.int().min(1),\n\tpages: z.int().nonnegative()\n})\n\nexport type ShipstationLabelRaw = z.infer<typeof shipstationLabelRawSchema>\nexport type ShipstationShipmentRaw = z.infer<typeof shipstationShipmentRawSchema>\nexport type ShipstationPagination = z.infer<typeof shipstationPaginationSchema>\nexport type ShipstationListLabelsPageInput = z.infer<typeof shipstationListLabelsPageInputSchema>\nexport type ShipstationListLabelsPageOutput = z.infer<typeof shipstationListLabelsPageOutputSchema>\nexport type ShipstationListShipmentsPageInput = z.infer<typeof shipstationListShipmentsPageInputSchema>\nexport type ShipstationListShipmentsPageOutput = z.infer<typeof shipstationListShipmentsPageOutputSchema>\n","/**\n * ShipStation V2 vendor client.\n * Host: `new ShipstationClient(auth)`. Agent tools: `fromContext(ctx)`.\n */\n\nimport { ToolError } from '../../core/errors'\nimport { requireAuth } from '../../core/provider'\nimport type { ToolContext } from '../../core/types'\nimport { HttpService } from '../../transport/http-service'\nimport type { HttpServiceOptions } from '../../transport/http-service'\nimport type {\n\tShipstationAuth,\n\tShipstationListLabelsPageInput,\n\tShipstationListLabelsPageOutput,\n\tShipstationListShipmentsPageInput,\n\tShipstationListShipmentsPageOutput\n} from './contracts'\nimport {\n\tshipstationAuthSchema,\n\tshipstationListLabelsPageInputSchema,\n\tshipstationListLabelsResponseSchema,\n\tshipstationListShipmentsPageInputSchema,\n\tshipstationListShipmentsResponseSchema\n} from './contracts'\n\nconst SHIPSTATION_API_BASE = 'https://api.shipstation.com/v2'\nconst DEFAULT_PAGE_SIZE = 25\n\nexport type ShipstationClientOptions = Pick<HttpServiceOptions, 'fetch' | 'signal'>\n\nexport class ShipstationClient {\n\treadonly #http: HttpService\n\n\tconstructor(auth: ShipstationAuth, options: ShipstationClientOptions = {}) {\n\t\tconst parsed = shipstationAuthSchema.safeParse(auth)\n\t\tif (!parsed.success) {\n\t\t\tthrow new ToolError('Invalid ShipStation auth credentials', {\n\t\t\t\tcode: 'bad_auth',\n\t\t\t\tdetails: { issues: parsed.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\tthis.#http = new HttpService({\n\t\t\t...options,\n\t\t\tbaseURL: SHIPSTATION_API_BASE,\n\t\t\theaders: {\n\t\t\t\tAccept: 'application/json',\n\t\t\t\t'API-Key': parsed.data.api_key\n\t\t\t},\n\t\t\tlabel: 'ShipStation'\n\t\t})\n\t}\n\n\tstatic fromContext(ctx: ToolContext): ShipstationClient {\n\t\tconst auth = requireAuth(ctx, shipstationAuthSchema)\n\t\treturn new ShipstationClient(auth, {\n\t\t\t...(ctx.fetch && { fetch: ctx.fetch }),\n\t\t\t...(ctx.signal && { signal: ctx.signal })\n\t\t})\n\t}\n\n\t/** One GET /labels request with provider pagination and filters. */\n\tasync listLabelsPage(input: ShipstationListLabelsPageInput = {}): Promise<ShipstationListLabelsPageOutput> {\n\t\tconst parsedInput = shipstationListLabelsPageInputSchema.safeParse(input)\n\t\tif (!parsedInput.success) {\n\t\t\tthrow new ToolError('Invalid ShipStation labels page input', {\n\t\t\t\tcode: 'bad_input',\n\t\t\t\tdetails: { issues: parsedInput.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\tconst page = parsedInput.data.page ?? 1\n\t\tconst pageSize = parsedInput.data.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#http.get('/labels', {\n\t\t\tlabel: 'ShipStation listLabelsPage',\n\t\t\tquery: { ...parsedInput.data, page, page_size: pageSize }\n\t\t})\n\t\tconst parsedResponse = shipstationListLabelsResponseSchema.safeParse(data)\n\t\tif (!parsedResponse.success) {\n\t\t\tthrow new ToolError('ShipStation returned an invalid labels page', {\n\t\t\t\tcode: 'upstream',\n\t\t\t\tdetails: { issues: parsedResponse.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\treturn {\n\t\t\titems: parsedResponse.data.labels,\n\t\t\tpagination: {\n\t\t\t\ttotal: parsedResponse.data.total,\n\t\t\t\tpage: parsedResponse.data.page,\n\t\t\t\tpages: parsedResponse.data.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: parsedResponse.data.page < parsedResponse.data.pages\n\t\t\t}\n\t\t}\n\t}\n\n\t/** One GET /shipments request with provider pagination and filters. */\n\tasync listShipmentsPage(input: ShipstationListShipmentsPageInput = {}): Promise<ShipstationListShipmentsPageOutput> {\n\t\tconst parsedInput = shipstationListShipmentsPageInputSchema.safeParse(input)\n\t\tif (!parsedInput.success) {\n\t\t\tthrow new ToolError('Invalid ShipStation shipments page input', {\n\t\t\t\tcode: 'bad_input',\n\t\t\t\tdetails: { issues: parsedInput.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\tconst page = parsedInput.data.page ?? 1\n\t\tconst pageSize = parsedInput.data.page_size ?? DEFAULT_PAGE_SIZE\n\t\tconst { data } = await this.#http.get('/shipments', {\n\t\t\tlabel: 'ShipStation listShipmentsPage',\n\t\t\tquery: { ...parsedInput.data, page, page_size: pageSize }\n\t\t})\n\t\tconst parsedResponse = shipstationListShipmentsResponseSchema.safeParse(data)\n\t\tif (!parsedResponse.success) {\n\t\t\tthrow new ToolError('ShipStation returned an invalid shipments page', {\n\t\t\t\tcode: 'upstream',\n\t\t\t\tdetails: { issues: parsedResponse.error.issues.map((issue) => issue.message) }\n\t\t\t})\n\t\t}\n\n\t\treturn {\n\t\t\titems: parsedResponse.data.shipments,\n\t\t\tpagination: {\n\t\t\t\ttotal: parsedResponse.data.total,\n\t\t\t\tpage: parsedResponse.data.page,\n\t\t\t\tpages: parsedResponse.data.pages,\n\t\t\t\tpage_size: pageSize,\n\t\t\t\thas_more: parsedResponse.data.page < parsedResponse.data.pages\n\t\t\t}\n\t\t}\n\t}\n}\n","import { defineModule, defineTool } from '../../core/define'\nimport { ShipstationClient } from './client'\nimport {\n\tshipstationAuthSchema,\n\tshipstationListLabelsPageInputSchema,\n\tshipstationListLabelsPageOutputSchema,\n\tshipstationListShipmentsPageInputSchema,\n\tshipstationListShipmentsPageOutputSchema\n} from './contracts'\n\nexport const shipstationListLabelsTool = defineTool({\n\tid: 'shipstation-list-labels',\n\tname: 'shipstationListLabels',\n\tdescription:\n\t\t'List one page of ShipStation labels. Filter by creation time, status, carrier, service, tracking number, shipment, warehouse, batch, rate, or refund status.',\n\tinputSchema: shipstationListLabelsPageInputSchema,\n\toutputSchema: shipstationListLabelsPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['labels', 'shipping', 'tracking', 'fulfillment'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listLabelsPage(input)\n})\n\nexport const shipstationListShipmentsTool = defineTool({\n\tid: 'shipstation-list-shipments',\n\tname: 'shipstationListShipments',\n\tdescription:\n\t\t'List one page of ShipStation shipments. Filter by creation, modification, or payment time plus status, order, store, recipient, item, batch, pickup, or shipment identifiers.',\n\tinputSchema: shipstationListShipmentsPageInputSchema,\n\toutputSchema: shipstationListShipmentsPageOutputSchema,\n\tsideEffect: 'read',\n\truntime: 'both',\n\tidempotent: true,\n\tnetwork: true,\n\tsupportsCancel: true,\n\ttags: ['shipments', 'shipping', 'orders', 'fulfillment'],\n\texecute: async (input, ctx) => ShipstationClient.fromContext(ctx).listShipmentsPage(input)\n})\n\nexport const shipstationModule = defineModule({\n\tid: 'shipstation',\n\ttitle: 'ShipStation',\n\tdescription: 'ShipStation V2 vendor pack for paginated label and shipment reads.',\n\truntime: 'both',\n\tauth: { type: 'custom', schema: shipstationAuthSchema },\n\tcategories: ['commerce', 'shipping'],\n\tclassification: 'pii',\n\ttags: ['labels', 'shipments', 'tracking', 'fulfillment'],\n\ttools: [shipstationListLabelsTool, shipstationListShipmentsTool]\n})\n"],"mappings":";;;;;;AAEA,MAAa,wBAAwB,EAAE,OAAO,EAC7C,SAAS,EAAE,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AC9E,CAAC;EAGF,OAAO;GACN,OAAO,eAAe,KAAK;GAC3B,YAAY;IACX,OAAO,eAAe,KAAK;IAC3B,MAAM,eAAe,KAAK;IAC1B,OAAO,eAAe,KAAK;IAC3B,WAAW;IACX,UAAU,eAAe,KAAK,OAAO,eAAe,KAAK;GAC1D;EACD;CACD;AACD;;;AC1HA,MAAa,4BAA4B,WAAW;CACnD,IAAI;CACJ,MAAM;CACN,aACC;CACD,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,MAAM;EAAC;EAAU;EAAY;EAAY;CAAa;CACtD,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,eAAe,KAAK;AACvF,CAAC;AAED,MAAa,+BAA+B,WAAW;CACtD,IAAI;CACJ,MAAM;CACN,aACC;CACD,aAAa;CACb,cAAc;CACd,YAAY;CACZ,SAAS;CACT,YAAY;CACZ,SAAS;CACT,gBAAgB;CAChB,MAAM;EAAC;EAAa;EAAY;EAAU;CAAa;CACvD,SAAS,OAAO,OAAO,QAAQ,kBAAkB,YAAY,GAAG,CAAC,CAAC,kBAAkB,KAAK;AAC1F,CAAC;AAED,MAAa,oBAAoB,aAAa;CAC7C,IAAI;CACJ,OAAO;CACP,aAAa;CACb,SAAS;CACT,MAAM;EAAE,MAAM;EAAU,QAAQ;CAAsB;CACtD,YAAY,CAAC,YAAY,UAAU;CACnC,gBAAgB;CAChB,MAAM;EAAC;EAAU;EAAa;EAAY;CAAa;CACvD,OAAO,CAAC,2BAA2B,4BAA4B;AAChE,CAAC"}
|
|
@@ -864,31 +864,31 @@ declare const woocommerceGetProductCategoryOutputSchema: z.ZodObject<{
|
|
|
864
864
|
}, z.core.$strip>;
|
|
865
865
|
declare const woocommerceRawRecordSchema: z.ZodObject<{
|
|
866
866
|
id: z.ZodNumber;
|
|
867
|
-
date_created: z.ZodOptional<z.ZodString
|
|
868
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
869
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
870
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
867
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
868
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
869
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
870
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
871
871
|
}, z.core.$loose>;
|
|
872
872
|
declare const woocommerceOrderRawSchema: z.ZodObject<{
|
|
873
873
|
id: z.ZodNumber;
|
|
874
|
-
date_created: z.ZodOptional<z.ZodString
|
|
875
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
876
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
877
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
874
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
875
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
876
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
877
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
878
878
|
}, z.core.$loose>;
|
|
879
879
|
declare const woocommerceProductRawSchema: z.ZodObject<{
|
|
880
880
|
id: z.ZodNumber;
|
|
881
|
-
date_created: z.ZodOptional<z.ZodString
|
|
882
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
883
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
884
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
881
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
882
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
883
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
884
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
885
885
|
}, z.core.$loose>;
|
|
886
886
|
declare const woocommerceCustomerRawSchema: z.ZodObject<{
|
|
887
887
|
id: z.ZodNumber;
|
|
888
|
-
date_created: z.ZodOptional<z.ZodString
|
|
889
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
890
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
891
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
888
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
891
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
892
892
|
}, z.core.$loose>;
|
|
893
893
|
declare const woocommercePaginationSchema: z.ZodObject<{
|
|
894
894
|
page: z.ZodInt;
|
|
@@ -924,10 +924,10 @@ declare const woocommerceListOrdersPageOutputSchema: z.ZodObject<{
|
|
|
924
924
|
}, z.core.$strip>;
|
|
925
925
|
items: z.ZodArray<z.ZodObject<{
|
|
926
926
|
id: z.ZodNumber;
|
|
927
|
-
date_created: z.ZodOptional<z.ZodString
|
|
928
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
929
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
930
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
927
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
929
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
931
931
|
}, z.core.$loose>>;
|
|
932
932
|
}, z.core.$strip>;
|
|
933
933
|
declare const woocommerceListProductsPageInputSchema: z.ZodObject<{
|
|
@@ -960,10 +960,10 @@ declare const woocommerceListProductsPageOutputSchema: z.ZodObject<{
|
|
|
960
960
|
}, z.core.$strip>;
|
|
961
961
|
items: z.ZodArray<z.ZodObject<{
|
|
962
962
|
id: z.ZodNumber;
|
|
963
|
-
date_created: z.ZodOptional<z.ZodString
|
|
964
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
965
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
966
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
963
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
964
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
967
|
}, z.core.$loose>>;
|
|
968
968
|
}, z.core.$strip>;
|
|
969
969
|
declare const woocommerceListCustomersPageInputSchema: z.ZodObject<{
|
|
@@ -993,10 +993,10 @@ declare const woocommerceListCustomersPageOutputSchema: z.ZodObject<{
|
|
|
993
993
|
}, z.core.$strip>;
|
|
994
994
|
items: z.ZodArray<z.ZodObject<{
|
|
995
995
|
id: z.ZodNumber;
|
|
996
|
-
date_created: z.ZodOptional<z.ZodString
|
|
997
|
-
date_created_gmt: z.ZodOptional<z.ZodString
|
|
998
|
-
date_modified: z.ZodOptional<z.ZodString
|
|
999
|
-
date_modified_gmt: z.ZodOptional<z.ZodString
|
|
996
|
+
date_created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
997
|
+
date_created_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
|
+
date_modified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
999
|
+
date_modified_gmt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
1000
|
}, z.core.$loose>>;
|
|
1001
1001
|
}, z.core.$strip>;
|
|
1002
1002
|
type WoocommerceAddress = z.infer<typeof woocommerceAddressSchema>;
|
|
@@ -421,10 +421,10 @@ const woocommerceCollectionTimeFields = {
|
|
|
421
421
|
};
|
|
422
422
|
const woocommerceRawRecordSchema = z.looseObject({
|
|
423
423
|
id: z.number().int(),
|
|
424
|
-
date_created: z.string().optional(),
|
|
425
|
-
date_created_gmt: z.string().optional(),
|
|
426
|
-
date_modified: z.string().optional(),
|
|
427
|
-
date_modified_gmt: z.string().optional()
|
|
424
|
+
date_created: z.string().nullable().optional(),
|
|
425
|
+
date_created_gmt: z.string().nullable().optional(),
|
|
426
|
+
date_modified: z.string().nullable().optional(),
|
|
427
|
+
date_modified_gmt: z.string().nullable().optional()
|
|
428
428
|
});
|
|
429
429
|
const woocommerceOrderRawSchema = woocommerceRawRecordSchema;
|
|
430
430
|
const woocommerceProductRawSchema = woocommerceRawRecordSchema;
|