@erp-galoper/types 1.0.1146 → 1.0.1148
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/openapi.ts +120 -4
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -5933,6 +5933,37 @@ export interface paths {
|
|
|
5933
5933
|
patch?: never;
|
|
5934
5934
|
trace?: never;
|
|
5935
5935
|
};
|
|
5936
|
+
"/api/v1/pos/sessions/{id}/discrepancies/": {
|
|
5937
|
+
parameters: {
|
|
5938
|
+
query?: never;
|
|
5939
|
+
header?: never;
|
|
5940
|
+
path?: never;
|
|
5941
|
+
cookie?: never;
|
|
5942
|
+
};
|
|
5943
|
+
get?: never;
|
|
5944
|
+
put?: never;
|
|
5945
|
+
/**
|
|
5946
|
+
* Post Discrepancies
|
|
5947
|
+
* @description This API endpoint handles the posting of discrepancies in a session, typically related to cash discrepancies at the point of sale. It processes the difference between expected and actual closing balances and creates the necessary journal entries to reflect those discrepancies in the system.
|
|
5948
|
+
* Note: Only sessions where the hasDiscrepancies field is set to True are eligible for processing with this endpoint.
|
|
5949
|
+
* If a session has no discrepancies, the request will be rejected.
|
|
5950
|
+
* **Responses:**
|
|
5951
|
+
* - 200: SessionSchema
|
|
5952
|
+
* - 400: - sessionNotClosed, sessionNotPosted, discrepanciesAlreadyPosted, noDiscrepancies, branchSettingsNotFound, accountNotFound
|
|
5953
|
+
* - 403: - permissionDenied
|
|
5954
|
+
* - 404: - sessionDoesNotExist
|
|
5955
|
+
* - 500: - serverError
|
|
5956
|
+
*
|
|
5957
|
+
* Permission key:
|
|
5958
|
+
* - session: ['post_discrepancies']
|
|
5959
|
+
*/
|
|
5960
|
+
post: operations["pos_session_views_post_discrepancies"];
|
|
5961
|
+
delete?: never;
|
|
5962
|
+
options?: never;
|
|
5963
|
+
head?: never;
|
|
5964
|
+
patch?: never;
|
|
5965
|
+
trace?: never;
|
|
5966
|
+
};
|
|
5936
5967
|
"/api/v1/pos/invoices/": {
|
|
5937
5968
|
parameters: {
|
|
5938
5969
|
query?: never;
|
|
@@ -24338,7 +24369,7 @@ export interface components {
|
|
|
24338
24369
|
* RetrieveJournalEntryType
|
|
24339
24370
|
* @enum {string}
|
|
24340
24371
|
*/
|
|
24341
|
-
RetrieveJournalEntryType: "manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral";
|
|
24372
|
+
RetrieveJournalEntryType: "manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "posSessionDiscrepancies";
|
|
24342
24373
|
/**
|
|
24343
24374
|
* StatusChoices
|
|
24344
24375
|
* @enum {string}
|
|
@@ -25075,7 +25106,7 @@ export interface components {
|
|
|
25075
25106
|
* ModuleChoicesSchema
|
|
25076
25107
|
* @enum {string}
|
|
25077
25108
|
*/
|
|
25078
|
-
ModuleChoicesSchema: "purchase" | "sales" | "accounting" | "expenses" | "inventory" | "commission";
|
|
25109
|
+
ModuleChoicesSchema: "purchase" | "sales" | "accounting" | "expenses" | "inventory" | "commission" | "pos";
|
|
25079
25110
|
/**
|
|
25080
25111
|
* TransactionalDocuments
|
|
25081
25112
|
* @enum {string}
|
|
@@ -28997,6 +29028,18 @@ export interface components {
|
|
|
28997
29028
|
/** Posted */
|
|
28998
29029
|
posted: boolean;
|
|
28999
29030
|
status: components["schemas"]["SessionStatus"];
|
|
29031
|
+
/** Hasdiscrepancies */
|
|
29032
|
+
hasDiscrepancies: boolean;
|
|
29033
|
+
/**
|
|
29034
|
+
* Secondarydifference
|
|
29035
|
+
* @default 0
|
|
29036
|
+
*/
|
|
29037
|
+
secondaryDifference: number | null;
|
|
29038
|
+
/**
|
|
29039
|
+
* Primarydifference
|
|
29040
|
+
* @default 0
|
|
29041
|
+
*/
|
|
29042
|
+
primaryDifference: number | null;
|
|
29000
29043
|
};
|
|
29001
29044
|
/** UserSummaryInfo */
|
|
29002
29045
|
UserSummaryInfo: {
|
|
@@ -29330,6 +29373,17 @@ export interface components {
|
|
|
29330
29373
|
/** Groupeddata */
|
|
29331
29374
|
groupedData: components["schemas"]["BreakdownItemSchema"][];
|
|
29332
29375
|
};
|
|
29376
|
+
/** DiscrepanciesIn */
|
|
29377
|
+
DiscrepanciesIn: {
|
|
29378
|
+
discrepancyPostingMethod: components["schemas"]["DiscrepancyPostingMethod"];
|
|
29379
|
+
/** Password */
|
|
29380
|
+
password?: string;
|
|
29381
|
+
};
|
|
29382
|
+
/**
|
|
29383
|
+
* DiscrepancyPostingMethod
|
|
29384
|
+
* @enum {string}
|
|
29385
|
+
*/
|
|
29386
|
+
DiscrepancyPostingMethod: "shortage/OverageAccounts(DefaultMethod)" | "employeeReceivable/Payable(Accountability-Based)" | "suspenseOrClearingAccounts(Temporarily)";
|
|
29333
29387
|
/**
|
|
29334
29388
|
* InvoiceStatus
|
|
29335
29389
|
* @enum {string}
|
|
@@ -53002,7 +53056,7 @@ export interface operations {
|
|
|
53002
53056
|
/** @description required when isBatchExport is True */
|
|
53003
53057
|
status?: ("draft" | "posted" | "reverse" | "canceled" | "submitted")[];
|
|
53004
53058
|
/** @description required when isBatchExport is True */
|
|
53005
|
-
type?: ("manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral")[];
|
|
53059
|
+
type?: ("manualJournalVoucher" | "openingBalance" | "yearClosing" | "salesTaxClosing" | "advancePayment" | "purchaseInvoice" | "paymentVoucher" | "purchaseReturn" | "creditNote" | "downPayment" | "salesInvoice" | "receiptVoucher" | "salesReturn" | "debitNote" | "expenses" | "salesDeferral" | "posSessionDiscrepancies")[];
|
|
53006
53060
|
branchId: number;
|
|
53007
53061
|
/** @description The value is true when export in list of journal vouchers, and value is false when export single journal voucher */
|
|
53008
53062
|
isBatchExport: boolean;
|
|
@@ -54046,7 +54100,7 @@ export interface operations {
|
|
|
54046
54100
|
parameters: {
|
|
54047
54101
|
query: {
|
|
54048
54102
|
branchId: number;
|
|
54049
|
-
module: "purchase" | "sales" | "accounting" | "expenses" | "inventory" | "commission";
|
|
54103
|
+
module: "purchase" | "sales" | "accounting" | "expenses" | "inventory" | "commission" | "pos";
|
|
54050
54104
|
/** @description This field is required when document one of these options [purchaseInvoice, advancePayment, paymentVoucher, purchaseReturn, creditNote, salesInvoice, salesReturn, downPayment, salesReturn, debitNote] */
|
|
54051
54105
|
documentName?: components["schemas"]["TransactionalDocuments"] | null;
|
|
54052
54106
|
/** @description when creating a new document action should be post, when editing document action should be put */
|
|
@@ -62412,6 +62466,68 @@ export interface operations {
|
|
|
62412
62466
|
};
|
|
62413
62467
|
};
|
|
62414
62468
|
};
|
|
62469
|
+
pos_session_views_post_discrepancies: {
|
|
62470
|
+
parameters: {
|
|
62471
|
+
query?: never;
|
|
62472
|
+
header?: never;
|
|
62473
|
+
path: {
|
|
62474
|
+
id: string;
|
|
62475
|
+
};
|
|
62476
|
+
cookie?: never;
|
|
62477
|
+
};
|
|
62478
|
+
requestBody: {
|
|
62479
|
+
content: {
|
|
62480
|
+
"application/json": components["schemas"]["DiscrepanciesIn"];
|
|
62481
|
+
};
|
|
62482
|
+
};
|
|
62483
|
+
responses: {
|
|
62484
|
+
/** @description OK */
|
|
62485
|
+
200: {
|
|
62486
|
+
headers: {
|
|
62487
|
+
[name: string]: unknown;
|
|
62488
|
+
};
|
|
62489
|
+
content: {
|
|
62490
|
+
"application/json": components["schemas"]["SessionSchema"];
|
|
62491
|
+
};
|
|
62492
|
+
};
|
|
62493
|
+
/** @description Bad Request */
|
|
62494
|
+
400: {
|
|
62495
|
+
headers: {
|
|
62496
|
+
[name: string]: unknown;
|
|
62497
|
+
};
|
|
62498
|
+
content: {
|
|
62499
|
+
"application/json": components["schemas"]["ErrorMessages"];
|
|
62500
|
+
};
|
|
62501
|
+
};
|
|
62502
|
+
/** @description Forbidden */
|
|
62503
|
+
403: {
|
|
62504
|
+
headers: {
|
|
62505
|
+
[name: string]: unknown;
|
|
62506
|
+
};
|
|
62507
|
+
content: {
|
|
62508
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
62509
|
+
};
|
|
62510
|
+
};
|
|
62511
|
+
/** @description Not Found */
|
|
62512
|
+
404: {
|
|
62513
|
+
headers: {
|
|
62514
|
+
[name: string]: unknown;
|
|
62515
|
+
};
|
|
62516
|
+
content: {
|
|
62517
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
62518
|
+
};
|
|
62519
|
+
};
|
|
62520
|
+
/** @description Internal Server Error */
|
|
62521
|
+
500: {
|
|
62522
|
+
headers: {
|
|
62523
|
+
[name: string]: unknown;
|
|
62524
|
+
};
|
|
62525
|
+
content: {
|
|
62526
|
+
"application/json": components["schemas"]["MessageResponse"];
|
|
62527
|
+
};
|
|
62528
|
+
};
|
|
62529
|
+
};
|
|
62530
|
+
};
|
|
62415
62531
|
pos_invoice_views_list_invoices: {
|
|
62416
62532
|
parameters: {
|
|
62417
62533
|
query?: {
|