@erp-galoper/types 1.0.1458 → 1.0.1460

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.
Files changed (2) hide show
  1. package/openapi.ts +403 -11
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -21503,7 +21503,7 @@ export interface paths {
21503
21503
  put?: never;
21504
21504
  /**
21505
21505
  * Manually sync a single customer to Shopify
21506
- * @description Triggers background sync of a specific ERP customer to Shopify. Automatically uses the first available store. If customer exists in both systems and both have been updated since last sync, conflict is resolved based on 'customer_source_of_truth' setting in Online Store Settings. Returns 202 if request is queued.customers should be filtered by: is_active=True, walk_in_pos=False, parent_customer is None ,and one of the currencies matches default currency in online store settings.
21506
+ * @description Triggers background sync of a specific ERP customer to Shopify. Automatically uses the first available store. If customer exists in both systems and both have been updated since last sync, conflict is resolved based on 'customer_source_of_truth' setting in Online Store Settings. Returns 202 if request is queued.customers should be filtered by: is_active=True, walk_in_pos=False, parent_customer is None (children only), and currency_id matches default currency in online store settings.
21507
21507
  */
21508
21508
  post: operations["integration_sync_views_sync_single_customer_endpoint"];
21509
21509
  delete?: never;
@@ -26051,7 +26051,7 @@ export interface components {
26051
26051
  * GetCostStrategy
26052
26052
  * @enum {string}
26053
26053
  */
26054
- GetCostStrategy: "firstInFirstOut" | "lastInFirstOut" | "weightedAverageCost" | "simpleAverageCost" | "marketCost";
26054
+ GetCostStrategy: "firstInFirstOut" | "lastInFirstOut" | "weightedAverageCost" | "marketCost";
26055
26055
  /**
26056
26056
  * INVENTORY_MOVEMENT_METHOD
26057
26057
  * @enum {string}
@@ -26986,7 +26986,7 @@ export interface components {
26986
26986
  * CostStrategy
26987
26987
  * @enum {string}
26988
26988
  */
26989
- CostStrategy: "firstInFirstOut" | "lastInFirstOut" | "weightedAverageCost" | "simpleAverageCost" | "marketCost";
26989
+ CostStrategy: "firstInFirstOut" | "lastInFirstOut" | "weightedAverageCost" | "marketCost";
26990
26990
  /** CreateChildItemSchema */
26991
26991
  CreateChildItemSchema: {
26992
26992
  /** Index */
@@ -29965,7 +29965,7 @@ export interface components {
29965
29965
  * @description Default currency to be used when creating new items. Get available currencies from /api/v1/common/currencies/
29966
29966
  */
29967
29967
  defaultCurrency?: number | null;
29968
- /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, sac, or marketCost) */
29968
+ /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, or marketCost) */
29969
29969
  defaultCostStrategy?: components["schemas"]["CostStrategy"] | null;
29970
29970
  /** Pdfdocumentfooter */
29971
29971
  pdfDocumentFooter?: string;
@@ -29998,7 +29998,7 @@ export interface components {
29998
29998
  * @description Default currency to be used when creating new items. Get available currencies from /api/v1/common/currencies/
29999
29999
  */
30000
30000
  defaultCurrency?: number | null;
30001
- /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, sac, or marketCost) */
30001
+ /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, or marketCost) */
30002
30002
  defaultCostStrategy?: components["schemas"]["CostStrategy"] | null;
30003
30003
  /** Pdfdocumentfooter */
30004
30004
  pdfDocumentFooter?: string;
@@ -30039,7 +30039,7 @@ export interface components {
30039
30039
  defaultUnitOfMeasure?: components["schemas"]["UnitOfMeasureSchema"][] | null;
30040
30040
  /** @description Default currency to be used when creating new items. Get available currencies from /api/v1/common/currencies/ */
30041
30041
  defaultCurrency?: components["schemas"]["CurrencySummaryInfo"] | null;
30042
- /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, sac, or marketCost) */
30042
+ /** @description Default cost strategy to be used when creating new items (fifo, lifo, wac, or marketCost) */
30043
30043
  defaultCostStrategy?: components["schemas"]["GetCostStrategy"] | null;
30044
30044
  /** Pdfdocumentfooter */
30045
30045
  pdfDocumentFooter: string | null;
@@ -31588,7 +31588,7 @@ export interface components {
31588
31588
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
31589
31589
  /** Id */
31590
31590
  id: number;
31591
- item: components["schemas"]["ItemMinimalSchema"];
31591
+ item: components["schemas"]["ItemSchema"];
31592
31592
  /** @description Tracking method: serial_number, batch, or quantity */
31593
31593
  trackInventoryBy?: components["schemas"]["TrackingMethodChoices"] | null;
31594
31594
  unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
@@ -45950,7 +45950,7 @@ export interface components {
45950
45950
  * filter by :
45951
45951
  * - viewType equal to flat, role not equal to template, active = true
45952
45952
  * * if price list type not equal to retail:
45953
- * - if pricing method is profit filter by costStrategy one of [fifo,lifo, wac, sac ]
45953
+ * - if pricing method is profit filter by costStrategy one of [fifo,lifo, wac ]
45954
45954
  * - if pricing method is manual filter by costStrategy = marketCost
45955
45955
  * - item can be filtered by: name, barcode, sku code or short name
45956
45956
  */
@@ -46077,7 +46077,7 @@ export interface components {
46077
46077
  */
46078
46078
  endDate?: string;
46079
46079
  /**
46080
- * @description Pricing method applied to the item. If the cost strategy of the item is 'fifo', 'lifo', 'wac', or 'sac', the pricing method should be 'profit'
46080
+ * @description Pricing method applied to the item. If the cost strategy of the item is 'fifo', 'lifo', 'wac', the pricing method should be 'profit'
46081
46081
  * - If the cost strategy is 'marketcost', the pricing method should be 'manual'.
46082
46082
  */
46083
46083
  pricingMethod: components["schemas"]["PRICING_METHOD_CHOICES"];
@@ -49551,7 +49551,187 @@ export interface components {
49551
49551
  SalesOrderListSchema: {
49552
49552
  info: components["schemas"]["PageInfoSchema"];
49553
49553
  /** Results */
49554
- results: components["schemas"]["SalesOrderSchema"][];
49554
+ results: components["schemas"]["SalesOrderWithoutItemsSchema"][];
49555
+ };
49556
+ /** SalesOrderWithoutItemsSchema */
49557
+ SalesOrderWithoutItemsSchema: {
49558
+ /**
49559
+ * Datecreated
49560
+ * Format: date-time
49561
+ */
49562
+ dateCreated: string;
49563
+ /** Datemodified */
49564
+ dateModified: string | null;
49565
+ createdBy: components["schemas"]["RecordUserSchema"];
49566
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
49567
+ /**
49568
+ * Id
49569
+ * Format: uuid
49570
+ */
49571
+ id: string;
49572
+ /**
49573
+ * Serialnumber
49574
+ * @description The serial number of the sales order.
49575
+ */
49576
+ serialNumber: string;
49577
+ customer: components["schemas"]["CustomerSharedSchema"];
49578
+ /** @description Details about the customer's branch. */
49579
+ customerBranch: components["schemas"]["CustomerBranchSharedSchema"] | null;
49580
+ /** @description Details about the warehouse where the order is managed, if applicable. */
49581
+ warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
49582
+ /** @description The sales quotation linked to this order, if applicable. */
49583
+ salesQuotation: components["schemas"]["SalesQuotationSharedSchema"] | null;
49584
+ /**
49585
+ * Date
49586
+ * Format: date
49587
+ * @description The date when the sales order was created. Format: YYYY-MM-DD.
49588
+ */
49589
+ date: string;
49590
+ /**
49591
+ * Deliverydate
49592
+ * Format: date
49593
+ * @description The expected delivery date. Format: YYYY-MM-DD.
49594
+ */
49595
+ deliveryDate: string;
49596
+ /** @description The current status of the sales order. */
49597
+ status: components["schemas"]["InternalStatusOnReturnValueChoices"];
49598
+ /** @description The approval status of the sales order. */
49599
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
49600
+ /** @description The invoice status linked to the sales order. */
49601
+ invoiceStatus: components["schemas"]["InvoiceStatusValueChoices"];
49602
+ /** @description The delivery status of the sales order. */
49603
+ deliveryStatus: components["schemas"]["DeliveryStatusValueChoices"];
49604
+ /** @description The price list associated with the sales order. */
49605
+ priceList: components["schemas"]["SalesPriceListSummaryInfo"] | null;
49606
+ /**
49607
+ * Promotionsandoffers
49608
+ * @description A list of promotions and offers applied to the sales order, visible when modules sales and inventory are on
49609
+ * @default []
49610
+ */
49611
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
49612
+ /** @description Details about the commission level for the sales order, if applicable. */
49613
+ commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
49614
+ /** @description visible when project module is active */
49615
+ project: components["schemas"]["ProjectSummaryInfo"] | null;
49616
+ /**
49617
+ * Usdrate
49618
+ * @description This field is a number representing the USD rate.
49619
+ */
49620
+ usdRate: string;
49621
+ /**
49622
+ * Companyrate
49623
+ * @description This field is a number representing the company rate.
49624
+ */
49625
+ companyRate: string;
49626
+ /**
49627
+ * Subtotal
49628
+ * @description This field is a number representing the subtotal for the sales order.
49629
+ */
49630
+ subtotal: string;
49631
+ /**
49632
+ * Usdsubtotal
49633
+ * @description This field is a number representing the subtotal in USD.
49634
+ */
49635
+ usdSubtotal: string;
49636
+ /**
49637
+ * Companysubtotal
49638
+ * @description This field is a number representing the subtotal in the company's currency.
49639
+ */
49640
+ companySubtotal: string;
49641
+ /**
49642
+ * Discount
49643
+ * @description The discount percentage applied to the sales order.
49644
+ * @default 0
49645
+ */
49646
+ discount: number;
49647
+ /**
49648
+ * Discountedtotal
49649
+ * @description This field is a number representing the total after discount.
49650
+ */
49651
+ discountedTotal: string;
49652
+ /**
49653
+ * Usddiscountedtotal
49654
+ * @description This field is a number representing the total after discount in USD.
49655
+ */
49656
+ usdDiscountedTotal: string;
49657
+ /**
49658
+ * Companydiscountedtotal
49659
+ * @description This field is a number representing the total after discount in the company's currency.
49660
+ */
49661
+ companyDiscountedTotal: string;
49662
+ /**
49663
+ * Taxamount
49664
+ * @description This field is a number representing the total tax amount.
49665
+ */
49666
+ taxAmount: string;
49667
+ /**
49668
+ * Usdtaxamount
49669
+ * @description This field is a number representing the total tax amount in USD.
49670
+ */
49671
+ usdTaxAmount: string;
49672
+ /**
49673
+ * Companytaxamount
49674
+ * @description This field is a number representing the total tax amount in the company's currency.
49675
+ */
49676
+ companyTaxAmount: string;
49677
+ /**
49678
+ * Total
49679
+ * @description This field is a number representing the total amount of the sales order.
49680
+ */
49681
+ total: string;
49682
+ /**
49683
+ * Usdtotal
49684
+ * @description This field is a number representing the total amount in USD.
49685
+ */
49686
+ usdTotal: string;
49687
+ /**
49688
+ * Companytotal
49689
+ * @description This field is a number representing the total amount in the company's currency.
49690
+ */
49691
+ companyTotal: string;
49692
+ /**
49693
+ * Totalpackagedepositcharge
49694
+ * @description This field is a number representing the total deposit charge for packages, if applicable.
49695
+ */
49696
+ totalPackageDepositCharge: string | null;
49697
+ /**
49698
+ * Attachments
49699
+ * @description A list of attachment file paths linked to the sales order.
49700
+ */
49701
+ attachments: string[] | null;
49702
+ /**
49703
+ * Description
49704
+ * @description A description of the sales order.
49705
+ */
49706
+ description: string | null;
49707
+ /**
49708
+ * Notes
49709
+ * @description Additional notes regarding the sales order.
49710
+ */
49711
+ notes: string | null;
49712
+ /** @description visible when customer is not resident */
49713
+ tax: components["schemas"]["TaxSharedSchema"] | null;
49714
+ /**
49715
+ * Taxbreakdown
49716
+ * @description Aggregated tax amounts breakdown
49717
+ * @default []
49718
+ */
49719
+ taxBreakdown: components["schemas"]["TaxBreakdownSchema"][];
49720
+ /**
49721
+ * Canconvert
49722
+ * @description Indicates whether the sales order can be converted to another status.
49723
+ * @default false
49724
+ */
49725
+ canConvert: boolean;
49726
+ /**
49727
+ * Candelete
49728
+ * @description Indicates whether the sales order can be deleted.
49729
+ * @default false
49730
+ */
49731
+ canDelete: boolean;
49732
+ /** Canedit */
49733
+ canEdit: boolean;
49734
+ salesPerson: components["schemas"]["SalesPersonSharedSchema"] | null;
49555
49735
  };
49556
49736
  /** SalesOrderSchemaWithLinkedDocuments */
49557
49737
  SalesOrderSchemaWithLinkedDocuments: {
@@ -51262,7 +51442,219 @@ export interface components {
51262
51442
  SalesInvoiceListSchema: {
51263
51443
  info: components["schemas"]["PageInfoSchema"];
51264
51444
  /** Results */
51265
- results: components["schemas"]["SalesInvoiceSchema"][];
51445
+ results: components["schemas"]["SalesInvoiceWithoutItemsSchema"][];
51446
+ };
51447
+ /** SalesInvoiceWithoutItemsSchema */
51448
+ SalesInvoiceWithoutItemsSchema: {
51449
+ /**
51450
+ * Isdeferred
51451
+ * @description Enable deferred invoicing
51452
+ * @default false
51453
+ */
51454
+ isDeferred: boolean;
51455
+ /**
51456
+ * Deferredperiod
51457
+ * @description Length of the deferred period (in days)
51458
+ */
51459
+ deferredPeriod: number | null;
51460
+ /** @description Revenue recognition frequency */
51461
+ recognitionFrequency: components["schemas"]["RecognitionFrequency"] | null;
51462
+ /**
51463
+ * Recognitionstartdate
51464
+ * @description Start date for revenue recognition
51465
+ */
51466
+ recognitionStartDate: string | null;
51467
+ /**
51468
+ * Postingstartdate
51469
+ * @description Posting start date for deferred revenue
51470
+ */
51471
+ postingStartDate: string | null;
51472
+ /**
51473
+ * Datecreated
51474
+ * Format: date-time
51475
+ */
51476
+ dateCreated: string;
51477
+ /** Datemodified */
51478
+ dateModified: string | null;
51479
+ createdBy: components["schemas"]["RecordUserSchema"];
51480
+ modifiedBy: components["schemas"]["RecordUserSchema"] | null;
51481
+ /**
51482
+ * Id
51483
+ * Format: uuid
51484
+ */
51485
+ id: string;
51486
+ /**
51487
+ * Serialnumber
51488
+ * @description The serial number of the sales invoice.
51489
+ */
51490
+ serialNumber: string;
51491
+ customer: components["schemas"]["CustomerSharedSchema"];
51492
+ /** @description Details about the customer's branch. */
51493
+ customerBranch: components["schemas"]["CustomerBranchSharedSchema"] | null;
51494
+ /** @description Details about the warehouse where the invoice is managed, if applicable. */
51495
+ warehouse: components["schemas"]["WarehouseSummaryInfo"] | null;
51496
+ /** @description The sales order linked to this invoice, if applicable. */
51497
+ salesOrder: components["schemas"]["DocumentCommonSchema"] | null;
51498
+ salesQuotation: components["schemas"]["DocumentCommonSchema"] | null;
51499
+ /**
51500
+ * Date
51501
+ * Format: date
51502
+ * @description The date when the sales invoice was created. Format: YYYY-MM-DD.
51503
+ */
51504
+ date: string;
51505
+ /**
51506
+ * Deliverydate
51507
+ * Format: date
51508
+ * @description The expected delivery date. Format: YYYY-MM-DD.
51509
+ */
51510
+ deliveryDate: string;
51511
+ /** @description The current status of the sales invoice. */
51512
+ status: components["schemas"]["DocumentStatusValue"];
51513
+ /** @description The approval status of the sales invoice. */
51514
+ approvalStatus: components["schemas"]["ApprovalValueChoices"];
51515
+ /** @description The delivery status of the sales invoice. */
51516
+ deliveryStatus: components["schemas"]["DeliveryStatusValueChoices"];
51517
+ /** @description The down payment linked to this invoice, if applicable. */
51518
+ downPayment: components["schemas"]["DocumentCommonSchema"] | null;
51519
+ /** @description The payment status of the sales invoice. */
51520
+ paymentStatus: components["schemas"]["PaymentStatusValueChoices"];
51521
+ /** @description The price list associated with the sales invoice. */
51522
+ priceList: components["schemas"]["SalesPriceListSummaryInfo"] | null;
51523
+ /**
51524
+ * Promotionsandoffers
51525
+ * @description A list of promotions and offers applied to the sales invoice, visible when modules sales and inventory are on
51526
+ * @default []
51527
+ */
51528
+ promotionsAndOffers: components["schemas"]["PromotionsAndOffersSharedSchema"][];
51529
+ /** @description Details about the commission level for the sales invoice, if applicable. */
51530
+ commission: components["schemas"]["CommissionLevelSharedSchema"] | null;
51531
+ /** @description visible when project module is active */
51532
+ project: components["schemas"]["ProjectSummaryInfo"] | null;
51533
+ /**
51534
+ * Secondaryrate
51535
+ * @description This field is a number representing the USD rate.
51536
+ */
51537
+ secondaryRate: string;
51538
+ /**
51539
+ * Companyrate
51540
+ * @description This field is a number representing the company rate.
51541
+ */
51542
+ companyRate: string;
51543
+ /**
51544
+ * Subtotal
51545
+ * @description This field is a number representing the subtotal for the sales invoice.
51546
+ */
51547
+ subtotal: string;
51548
+ /**
51549
+ * Secondarysubtotal
51550
+ * @description This field is a number representing the subtotal amount in USD.
51551
+ */
51552
+ secondarySubtotal: string;
51553
+ /**
51554
+ * Companysubtotal
51555
+ * @description This field is a number representing the subtotal amount in the company's currency.
51556
+ */
51557
+ companySubtotal: string;
51558
+ /**
51559
+ * Discount
51560
+ * @description The discount percentage applied to the sales invoice.
51561
+ * @default 0
51562
+ */
51563
+ discount: number;
51564
+ /**
51565
+ * Discountedtotal
51566
+ * @description This field is a number representing the total after discount
51567
+ */
51568
+ discountedTotal: string;
51569
+ /**
51570
+ * Secondarydiscountedtotal
51571
+ * @description This field is a number representing the total after discount in USD.
51572
+ */
51573
+ secondaryDiscountedTotal: string;
51574
+ /**
51575
+ * Companydiscountedtotal
51576
+ * @description This field is a number representing the total after discount in the company's currency.
51577
+ */
51578
+ companyDiscountedTotal: string;
51579
+ /**
51580
+ * Taxamount
51581
+ * @description This field is a number representing the total tax amount.
51582
+ */
51583
+ taxAmount: string;
51584
+ /**
51585
+ * Secondarytaxamount
51586
+ * @description This field is a number representing the total tax amount in USD.
51587
+ */
51588
+ secondaryTaxAmount: string;
51589
+ /**
51590
+ * Companytaxamount
51591
+ * @description This field is a number representing the total tax amount in the company's currency.
51592
+ */
51593
+ companyTaxAmount: string;
51594
+ /**
51595
+ * Total
51596
+ * @description This field is a number representing the total amount of the sales invoice.
51597
+ */
51598
+ total: string;
51599
+ /**
51600
+ * Secondarytotal
51601
+ * @description This field is a number representing the total amount in USD.
51602
+ */
51603
+ secondaryTotal: string;
51604
+ /**
51605
+ * Companytotal
51606
+ * @description This field is a number representing the total amount in the company's currency.
51607
+ */
51608
+ companyTotal: string;
51609
+ /**
51610
+ * Totalpackagedepositcharge
51611
+ * @description This field is a number representing the total deposit charge for packages, if applicable.
51612
+ */
51613
+ totalPackageDepositCharge: string | null;
51614
+ /**
51615
+ * Attachments
51616
+ * @description A list of attachment file paths linked to the sales invoice.
51617
+ */
51618
+ attachments: string[] | null;
51619
+ /**
51620
+ * Description
51621
+ * @description A description of the sales invoice.
51622
+ */
51623
+ description: string | null;
51624
+ /**
51625
+ * Notes
51626
+ * @description Additional notes regarding the sales invoice.
51627
+ */
51628
+ notes: string | null;
51629
+ /** @description visible when customer is not resident */
51630
+ tax: components["schemas"]["TaxSharedSchema"] | null;
51631
+ /**
51632
+ * Taxbreakdown
51633
+ * @description Aggregated tax amounts breakdown
51634
+ * @default []
51635
+ */
51636
+ taxBreakdown: components["schemas"]["TaxBreakdownSchema"][];
51637
+ /**
51638
+ * Canreturn
51639
+ * @description Indicates whether the sales invoice can be converted to delivery note
51640
+ * @default false
51641
+ */
51642
+ canReturn: boolean;
51643
+ /**
51644
+ * Candelete
51645
+ * @description Indicates whether the sales invoice can be deleted.
51646
+ * @default false
51647
+ */
51648
+ canDelete: boolean;
51649
+ /** Canedit */
51650
+ canEdit: boolean;
51651
+ salesPerson: components["schemas"]["SalesPersonSharedSchema"] | null;
51652
+ /**
51653
+ * Remaining
51654
+ * @description this field is number
51655
+ */
51656
+ remaining?: string | null;
51657
+ paymentTerms: components["schemas"]["PaymentTermsEnumSchema"];
51266
51658
  };
51267
51659
  /**
51268
51660
  * SalesInvoiceItemTypeSchema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1458",
3
+ "version": "1.0.1460",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],