@erp-galoper/types 1.0.1114 → 1.0.1115

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 +99 -0
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -13522,6 +13522,35 @@ export interface paths {
13522
13522
  patch?: never;
13523
13523
  trace?: never;
13524
13524
  };
13525
+ "/api/v1/sales/price-list/import-excel/": {
13526
+ parameters: {
13527
+ query?: never;
13528
+ header?: never;
13529
+ path?: never;
13530
+ cookie?: never;
13531
+ };
13532
+ get?: never;
13533
+ put?: never;
13534
+ /**
13535
+ * Create Price List From Excel
13536
+ * @description Endpoint for creating a new sales price list from items excel
13537
+ * Responses:
13538
+ * - 201:
13539
+ * - None
13540
+ * - 400:
13541
+ * - secondaryCurrencyDoesNotExist
13542
+ * - salesTaxNotFound
13543
+ *
13544
+ * - 500:
13545
+ * - internalServerError
13546
+ */
13547
+ post: operations["sales_price_list_views_create_price_list_from_excel"];
13548
+ delete?: never;
13549
+ options?: never;
13550
+ head?: never;
13551
+ patch?: never;
13552
+ trace?: never;
13553
+ };
13525
13554
  "/api/v1/sales/price-list/{id}/migrate-to-pos/": {
13526
13555
  parameters: {
13527
13556
  query?: never;
@@ -40394,6 +40423,8 @@ export interface components {
40394
40423
  * @description The profit margin percentage for the item. Required when using the 'profit-based' pricing method with 'fixed' pricing type.
40395
40424
  */
40396
40425
  profit?: number;
40426
+ /** Cost */
40427
+ cost?: number | null;
40397
40428
  };
40398
40429
  /** CreateUpdateSalesPriceListSchema */
40399
40430
  CreateUpdateSalesPriceListSchema: {
@@ -40539,6 +40570,11 @@ export interface components {
40539
40570
  */
40540
40571
  canDelete: boolean;
40541
40572
  };
40573
+ /**
40574
+ * PriceListCurrencyEnum
40575
+ * @enum {string}
40576
+ */
40577
+ PriceListCurrencyEnum: "primary" | "secondary";
40542
40578
  /** ListPackageTypeSchema */
40543
40579
  ListPackageTypeSchema: {
40544
40580
  info: components["schemas"]["PageInfoSchema"];
@@ -76483,6 +76519,69 @@ export interface operations {
76483
76519
  };
76484
76520
  };
76485
76521
  };
76522
+ sales_price_list_views_create_price_list_from_excel: {
76523
+ parameters: {
76524
+ query?: {
76525
+ /** @description Type of price list to create */
76526
+ priceListType?: "wholesale" | "retail";
76527
+ /** @description Currency of the price list */
76528
+ priceListCurrency?: "primary" | "secondary";
76529
+ };
76530
+ header?: never;
76531
+ path?: never;
76532
+ cookie?: never;
76533
+ };
76534
+ requestBody: {
76535
+ content: {
76536
+ "multipart/form-data": {
76537
+ /**
76538
+ * File
76539
+ * Format: binary
76540
+ * @description the only allowed file is excel file
76541
+ */
76542
+ file: string;
76543
+ };
76544
+ };
76545
+ };
76546
+ responses: {
76547
+ /** @description Created */
76548
+ 201: {
76549
+ headers: {
76550
+ [name: string]: unknown;
76551
+ };
76552
+ content: {
76553
+ "application/json": components["schemas"]["MessageWithCode"];
76554
+ };
76555
+ };
76556
+ /** @description Bad Request */
76557
+ 400: {
76558
+ headers: {
76559
+ [name: string]: unknown;
76560
+ };
76561
+ content: {
76562
+ "application/json": components["schemas"]["ErrorMessages"];
76563
+ };
76564
+ };
76565
+ /** @description Forbidden */
76566
+ 403: {
76567
+ headers: {
76568
+ [name: string]: unknown;
76569
+ };
76570
+ content: {
76571
+ "application/json": components["schemas"]["MessageWithCode"];
76572
+ };
76573
+ };
76574
+ /** @description Internal Server Error */
76575
+ 500: {
76576
+ headers: {
76577
+ [name: string]: unknown;
76578
+ };
76579
+ content: {
76580
+ "application/json": components["schemas"]["ErrorMessages"];
76581
+ };
76582
+ };
76583
+ };
76584
+ };
76486
76585
  sales_price_list_views_migrate_sales_price_list_to_pos_price_list: {
76487
76586
  parameters: {
76488
76587
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erp-galoper/types",
3
- "version": "1.0.1114",
3
+ "version": "1.0.1115",
4
4
  "main": "openapi.ts",
5
5
  "types": "openapi.ts",
6
6
  "files": ["openapi.ts"],