@erp-galoper/types 1.0.644 → 1.0.646
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 +23 -206
- package/package.json +1 -1
package/openapi.ts
CHANGED
|
@@ -9124,39 +9124,6 @@ export interface paths {
|
|
|
9124
9124
|
patch?: never;
|
|
9125
9125
|
trace?: never;
|
|
9126
9126
|
};
|
|
9127
|
-
"/api/v1/purchase/requisitions/{id}/submit/": {
|
|
9128
|
-
parameters: {
|
|
9129
|
-
query?: never;
|
|
9130
|
-
header?: never;
|
|
9131
|
-
path?: never;
|
|
9132
|
-
cookie?: never;
|
|
9133
|
-
};
|
|
9134
|
-
get?: never;
|
|
9135
|
-
put?: never;
|
|
9136
|
-
/**
|
|
9137
|
-
* Submit Requisition
|
|
9138
|
-
* @description Endpoint for submit requisition
|
|
9139
|
-
* Possible Responses:
|
|
9140
|
-
* - 404:
|
|
9141
|
-
* - requisitionDoesNotExist
|
|
9142
|
-
* - 403:
|
|
9143
|
-
* - permissionDenied
|
|
9144
|
-
* - noBranchAccess
|
|
9145
|
-
* - noModuleAccess
|
|
9146
|
-
* - requisitionShouldBeDraft
|
|
9147
|
-
* - cantMakeActionOnLockedDocument
|
|
9148
|
-
* - 500:
|
|
9149
|
-
* - internalServerError
|
|
9150
|
-
* - permission key:
|
|
9151
|
-
* - requisition : [ add ]
|
|
9152
|
-
*/
|
|
9153
|
-
post: operations["purchase_requisition_views_submit_requisition"];
|
|
9154
|
-
delete?: never;
|
|
9155
|
-
options?: never;
|
|
9156
|
-
head?: never;
|
|
9157
|
-
patch?: never;
|
|
9158
|
-
trace?: never;
|
|
9159
|
-
};
|
|
9160
9127
|
"/api/v1/purchase/requisitions/{id}/export-pdf/": {
|
|
9161
9128
|
parameters: {
|
|
9162
9129
|
query?: never;
|
|
@@ -9322,9 +9289,9 @@ export interface paths {
|
|
|
9322
9289
|
* - itemIsRequired
|
|
9323
9290
|
* - unitOfMeasureIsRequired
|
|
9324
9291
|
* - itemRequired
|
|
9325
|
-
* - supplierMissMatch
|
|
9326
9292
|
* - departmentMissMatch
|
|
9327
9293
|
* - DueDateShouldBeGreaterThanOrEqualDocumentDate
|
|
9294
|
+
* - requisitionShouldBeSubmitted
|
|
9328
9295
|
* - 403:
|
|
9329
9296
|
* - permissionDenied
|
|
9330
9297
|
* - noBranchAccess
|
|
@@ -9485,37 +9452,6 @@ export interface paths {
|
|
|
9485
9452
|
patch?: never;
|
|
9486
9453
|
trace?: never;
|
|
9487
9454
|
};
|
|
9488
|
-
"/api/v1/purchase/request-for-quotations/{id}/submit/": {
|
|
9489
|
-
parameters: {
|
|
9490
|
-
query?: never;
|
|
9491
|
-
header?: never;
|
|
9492
|
-
path?: never;
|
|
9493
|
-
cookie?: never;
|
|
9494
|
-
};
|
|
9495
|
-
get?: never;
|
|
9496
|
-
put?: never;
|
|
9497
|
-
/**
|
|
9498
|
-
* Submit Request For Quotation
|
|
9499
|
-
* @description Endpoint for submit request for quotation
|
|
9500
|
-
* Possible Responses:
|
|
9501
|
-
* - 404:
|
|
9502
|
-
* - requestForQuotationDoesNotExist
|
|
9503
|
-
* - 403:
|
|
9504
|
-
* - permissionDenied
|
|
9505
|
-
* - noBranchAccess
|
|
9506
|
-
* - requestForQuotationShouldBeDraft
|
|
9507
|
-
* - cantMakeActionOnLockedDocument
|
|
9508
|
-
* - noModuleAccess
|
|
9509
|
-
* - 500:
|
|
9510
|
-
* - internalServerError
|
|
9511
|
-
*/
|
|
9512
|
-
post: operations["purchase_request_for_quotation_views_submit_request_for_quotation"];
|
|
9513
|
-
delete?: never;
|
|
9514
|
-
options?: never;
|
|
9515
|
-
head?: never;
|
|
9516
|
-
patch?: never;
|
|
9517
|
-
trace?: never;
|
|
9518
|
-
};
|
|
9519
9455
|
"/api/v1/purchase/advance-payments/{id}/export-excel/": {
|
|
9520
9456
|
parameters: {
|
|
9521
9457
|
query?: never;
|
|
@@ -27729,7 +27665,7 @@ export interface components {
|
|
|
27729
27665
|
/**
|
|
27730
27666
|
* Id
|
|
27731
27667
|
* Format: uuid
|
|
27732
|
-
* @example
|
|
27668
|
+
* @example c510e741-da8a-47f2-98ab-5413f125d8e1
|
|
27733
27669
|
*/
|
|
27734
27670
|
id: string;
|
|
27735
27671
|
/**
|
|
@@ -31743,11 +31679,11 @@ export interface components {
|
|
|
31743
31679
|
*/
|
|
31744
31680
|
quantity?: number;
|
|
31745
31681
|
/**
|
|
31746
|
-
*
|
|
31682
|
+
* Itempackage
|
|
31747
31683
|
* Format: uuid
|
|
31748
31684
|
* @description choose from the item itemPackage
|
|
31749
31685
|
*/
|
|
31750
|
-
|
|
31686
|
+
itemPackage?: string;
|
|
31751
31687
|
/**
|
|
31752
31688
|
* Unitpackage
|
|
31753
31689
|
* @description This field is required when purchase invoice item has item package
|
|
@@ -31757,7 +31693,7 @@ export interface components {
|
|
|
31757
31693
|
* Estimatedcost
|
|
31758
31694
|
* @description to get item cost if exist use route /supplier/price_list/item_prices/{item_id}/ with query param supplier_id
|
|
31759
31695
|
*/
|
|
31760
|
-
estimatedCost
|
|
31696
|
+
estimatedCost?: number | string | null;
|
|
31761
31697
|
};
|
|
31762
31698
|
/** CalculateRequisitionItemsSchema */
|
|
31763
31699
|
CalculateRequisitionItemsSchema: {
|
|
@@ -31803,6 +31739,11 @@ export interface components {
|
|
|
31803
31739
|
[key: string]: components["schemas"]["LinkedDocumentsSchema"];
|
|
31804
31740
|
}[];
|
|
31805
31741
|
};
|
|
31742
|
+
/**
|
|
31743
|
+
* NonInventoryItemType
|
|
31744
|
+
* @enum {string}
|
|
31745
|
+
*/
|
|
31746
|
+
NonInventoryItemType: "goods" | "service" | "works";
|
|
31806
31747
|
/** ReasonSummaryInfo */
|
|
31807
31748
|
ReasonSummaryInfo: {
|
|
31808
31749
|
/** Id */
|
|
@@ -31882,6 +31823,7 @@ export interface components {
|
|
|
31882
31823
|
item: components["schemas"]["ItemMinimalSchema"] | null;
|
|
31883
31824
|
/** Itemtext */
|
|
31884
31825
|
itemText: string | null;
|
|
31826
|
+
itemType: components["schemas"]["NonInventoryItemType"] | null;
|
|
31885
31827
|
/** Quantity */
|
|
31886
31828
|
quantity: number;
|
|
31887
31829
|
unitOfMeasure: components["schemas"]["UnitOfMeasureSummaryInfo"] | null;
|
|
@@ -31950,6 +31892,8 @@ export interface components {
|
|
|
31950
31892
|
* @description This field is required and visible when inventory module is not active
|
|
31951
31893
|
*/
|
|
31952
31894
|
itemText: string | null;
|
|
31895
|
+
/** @description This field is visible and required if inventory is off */
|
|
31896
|
+
itemType?: components["schemas"]["NonInventoryItemType"];
|
|
31953
31897
|
/**
|
|
31954
31898
|
* Quantity
|
|
31955
31899
|
* @description
|
|
@@ -31987,7 +31931,7 @@ export interface components {
|
|
|
31987
31931
|
* Unitpackage
|
|
31988
31932
|
* @description This field is required when the package is selected
|
|
31989
31933
|
*/
|
|
31990
|
-
unitPackage
|
|
31934
|
+
unitPackage?: number | null;
|
|
31991
31935
|
};
|
|
31992
31936
|
/**
|
|
31993
31937
|
* requisitionTypes
|
|
@@ -32062,6 +32006,8 @@ export interface components {
|
|
|
32062
32006
|
* @description This field is required and visible when inventory module is not active
|
|
32063
32007
|
*/
|
|
32064
32008
|
itemText: string | null;
|
|
32009
|
+
/** @description This field is visible and required if inventory is off */
|
|
32010
|
+
itemType?: components["schemas"]["NonInventoryItemType"];
|
|
32065
32011
|
/**
|
|
32066
32012
|
* Quantity
|
|
32067
32013
|
* @description
|
|
@@ -32099,7 +32045,7 @@ export interface components {
|
|
|
32099
32045
|
* Unitpackage
|
|
32100
32046
|
* @description This field is required when the package is selected
|
|
32101
32047
|
*/
|
|
32102
|
-
unitPackage
|
|
32048
|
+
unitPackage?: number | null;
|
|
32103
32049
|
/**
|
|
32104
32050
|
* Id
|
|
32105
32051
|
* Format: uuid
|
|
@@ -32171,11 +32117,6 @@ export interface components {
|
|
|
32171
32117
|
/** Attachments */
|
|
32172
32118
|
attachments?: string[];
|
|
32173
32119
|
};
|
|
32174
|
-
/**
|
|
32175
|
-
* NonInventoryItemType
|
|
32176
|
-
* @enum {string}
|
|
32177
|
-
*/
|
|
32178
|
-
NonInventoryItemType: "goods" | "service" | "works";
|
|
32179
32120
|
/** RequestForQuotationResponse */
|
|
32180
32121
|
RequestForQuotationResponse: {
|
|
32181
32122
|
/** Message */
|
|
@@ -32309,7 +32250,7 @@ export interface components {
|
|
|
32309
32250
|
* Fromrequisition
|
|
32310
32251
|
* @description To get requisitions use route /purchase/requisitions/ where type is requestForQuotation
|
|
32311
32252
|
*/
|
|
32312
|
-
fromRequisition
|
|
32253
|
+
fromRequisition?: string | null;
|
|
32313
32254
|
status: components["schemas"]["InternalStatusChoices"];
|
|
32314
32255
|
/**
|
|
32315
32256
|
* Project
|
|
@@ -32350,7 +32291,7 @@ export interface components {
|
|
|
32350
32291
|
* - input should be disabled, get unit of measure from itemPackage
|
|
32351
32292
|
*
|
|
32352
32293
|
*/
|
|
32353
|
-
unitOfMeasure
|
|
32294
|
+
unitOfMeasure?: number | null;
|
|
32354
32295
|
/**
|
|
32355
32296
|
* Itempackage
|
|
32356
32297
|
* @description choose from the item's itemPackage
|
|
@@ -32360,7 +32301,7 @@ export interface components {
|
|
|
32360
32301
|
* Unitpackage
|
|
32361
32302
|
* @description This field is required when the package is selected
|
|
32362
32303
|
*/
|
|
32363
|
-
unitPackage
|
|
32304
|
+
unitPackage?: number | null;
|
|
32364
32305
|
};
|
|
32365
32306
|
/** ListRequestForQuotations */
|
|
32366
32307
|
ListRequestForQuotations: {
|
|
@@ -32444,7 +32385,7 @@ export interface components {
|
|
|
32444
32385
|
* - input should be disabled, get unit of measure from itemPackage
|
|
32445
32386
|
*
|
|
32446
32387
|
*/
|
|
32447
|
-
unitOfMeasure
|
|
32388
|
+
unitOfMeasure?: number | null;
|
|
32448
32389
|
/**
|
|
32449
32390
|
* Itempackage
|
|
32450
32391
|
* @description choose from the item's itemPackage
|
|
@@ -32454,7 +32395,7 @@ export interface components {
|
|
|
32454
32395
|
* Unitpackage
|
|
32455
32396
|
* @description This field is required when the package is selected
|
|
32456
32397
|
*/
|
|
32457
|
-
unitPackage
|
|
32398
|
+
unitPackage?: number | null;
|
|
32458
32399
|
/**
|
|
32459
32400
|
* Id
|
|
32460
32401
|
* Format: uuid
|
|
@@ -32500,7 +32441,7 @@ export interface components {
|
|
|
32500
32441
|
* Fromrequisition
|
|
32501
32442
|
* @description To get requisitions use route /purchase/requisitions/ where type is requestForQuotation
|
|
32502
32443
|
*/
|
|
32503
|
-
fromRequisition
|
|
32444
|
+
fromRequisition?: string | null;
|
|
32504
32445
|
status: components["schemas"]["InternalStatusChoices"];
|
|
32505
32446
|
/**
|
|
32506
32447
|
* Project
|
|
@@ -66264,68 +66205,6 @@ export interface operations {
|
|
|
66264
66205
|
};
|
|
66265
66206
|
};
|
|
66266
66207
|
};
|
|
66267
|
-
purchase_requisition_views_submit_requisition: {
|
|
66268
|
-
parameters: {
|
|
66269
|
-
query?: never;
|
|
66270
|
-
header?: never;
|
|
66271
|
-
path: {
|
|
66272
|
-
id: string;
|
|
66273
|
-
};
|
|
66274
|
-
cookie?: never;
|
|
66275
|
-
};
|
|
66276
|
-
requestBody: {
|
|
66277
|
-
content: {
|
|
66278
|
-
"application/json": components["schemas"]["ActionOnRequisitionSchema"];
|
|
66279
|
-
};
|
|
66280
|
-
};
|
|
66281
|
-
responses: {
|
|
66282
|
-
/** @description OK */
|
|
66283
|
-
200: {
|
|
66284
|
-
headers: {
|
|
66285
|
-
[name: string]: unknown;
|
|
66286
|
-
};
|
|
66287
|
-
content: {
|
|
66288
|
-
"application/json": components["schemas"]["RequisitionResponse"];
|
|
66289
|
-
};
|
|
66290
|
-
};
|
|
66291
|
-
/** @description Bad Request */
|
|
66292
|
-
400: {
|
|
66293
|
-
headers: {
|
|
66294
|
-
[name: string]: unknown;
|
|
66295
|
-
};
|
|
66296
|
-
content: {
|
|
66297
|
-
"application/json": components["schemas"]["ErrorMessages"];
|
|
66298
|
-
};
|
|
66299
|
-
};
|
|
66300
|
-
/** @description Forbidden */
|
|
66301
|
-
403: {
|
|
66302
|
-
headers: {
|
|
66303
|
-
[name: string]: unknown;
|
|
66304
|
-
};
|
|
66305
|
-
content: {
|
|
66306
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
66307
|
-
};
|
|
66308
|
-
};
|
|
66309
|
-
/** @description Not Found */
|
|
66310
|
-
404: {
|
|
66311
|
-
headers: {
|
|
66312
|
-
[name: string]: unknown;
|
|
66313
|
-
};
|
|
66314
|
-
content: {
|
|
66315
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
66316
|
-
};
|
|
66317
|
-
};
|
|
66318
|
-
/** @description Internal Server Error */
|
|
66319
|
-
500: {
|
|
66320
|
-
headers: {
|
|
66321
|
-
[name: string]: unknown;
|
|
66322
|
-
};
|
|
66323
|
-
content: {
|
|
66324
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
66325
|
-
};
|
|
66326
|
-
};
|
|
66327
|
-
};
|
|
66328
|
-
};
|
|
66329
66208
|
purchase_requisition_views_export_requisition_pdf: {
|
|
66330
66209
|
parameters: {
|
|
66331
66210
|
query?: never;
|
|
@@ -66986,68 +66865,6 @@ export interface operations {
|
|
|
66986
66865
|
};
|
|
66987
66866
|
};
|
|
66988
66867
|
};
|
|
66989
|
-
purchase_request_for_quotation_views_submit_request_for_quotation: {
|
|
66990
|
-
parameters: {
|
|
66991
|
-
query?: never;
|
|
66992
|
-
header?: never;
|
|
66993
|
-
path: {
|
|
66994
|
-
id: string;
|
|
66995
|
-
};
|
|
66996
|
-
cookie?: never;
|
|
66997
|
-
};
|
|
66998
|
-
requestBody: {
|
|
66999
|
-
content: {
|
|
67000
|
-
"application/json": components["schemas"]["ActionOnRequestForQuotationSchema"];
|
|
67001
|
-
};
|
|
67002
|
-
};
|
|
67003
|
-
responses: {
|
|
67004
|
-
/** @description OK */
|
|
67005
|
-
200: {
|
|
67006
|
-
headers: {
|
|
67007
|
-
[name: string]: unknown;
|
|
67008
|
-
};
|
|
67009
|
-
content: {
|
|
67010
|
-
"application/json": components["schemas"]["RequestForQuotationResponse"];
|
|
67011
|
-
};
|
|
67012
|
-
};
|
|
67013
|
-
/** @description Bad Request */
|
|
67014
|
-
400: {
|
|
67015
|
-
headers: {
|
|
67016
|
-
[name: string]: unknown;
|
|
67017
|
-
};
|
|
67018
|
-
content: {
|
|
67019
|
-
"application/json": components["schemas"]["ErrorMessages"];
|
|
67020
|
-
};
|
|
67021
|
-
};
|
|
67022
|
-
/** @description Forbidden */
|
|
67023
|
-
403: {
|
|
67024
|
-
headers: {
|
|
67025
|
-
[name: string]: unknown;
|
|
67026
|
-
};
|
|
67027
|
-
content: {
|
|
67028
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
67029
|
-
};
|
|
67030
|
-
};
|
|
67031
|
-
/** @description Not Found */
|
|
67032
|
-
404: {
|
|
67033
|
-
headers: {
|
|
67034
|
-
[name: string]: unknown;
|
|
67035
|
-
};
|
|
67036
|
-
content: {
|
|
67037
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
67038
|
-
};
|
|
67039
|
-
};
|
|
67040
|
-
/** @description Internal Server Error */
|
|
67041
|
-
500: {
|
|
67042
|
-
headers: {
|
|
67043
|
-
[name: string]: unknown;
|
|
67044
|
-
};
|
|
67045
|
-
content: {
|
|
67046
|
-
"application/json": components["schemas"]["MessageResponse"];
|
|
67047
|
-
};
|
|
67048
|
-
};
|
|
67049
|
-
};
|
|
67050
|
-
};
|
|
67051
66868
|
purchase_advance_payment_views_export_advance_payment: {
|
|
67052
66869
|
parameters: {
|
|
67053
66870
|
query: {
|