@erp-galoper/main-package 1.0.220 → 1.0.221

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/openapi.ts +46 -50
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -881,7 +881,7 @@ export interface paths {
881
881
  * - codeConflict
882
882
  * - cityIdDoesNotExist
883
883
  * - dateFoundedShouldBeLessThanDateOfToday
884
- * - cityMismatchWithCountry
884
+ * - CityDoesNotBelongToSelectedCountry
885
885
  * - 201:
886
886
  * - companyCreated
887
887
  * - 403:
@@ -908,7 +908,7 @@ export interface paths {
908
908
  * - imageDoesNotExist
909
909
  * - dateFoundedShouldBeLessThanDateOfToday
910
910
  * - vatDateShouldBeBetweenDateFoundedAndDateOfToday
911
- * - cityMismatchWithCountry
911
+ * - CityDoesNotBelongToSelectedCountry
912
912
  * - 200:
913
913
  * - companyUpdated
914
914
  * - 403:
@@ -1065,7 +1065,7 @@ export interface paths {
1065
1065
  * Possible Responses:
1066
1066
  * - 400:
1067
1067
  * - defaultWarehouseAlreadyExist
1068
- * - cityIdDoesNotExist
1068
+ * - CityDoesNotBelongToSelectedCountry
1069
1069
  * - 201:
1070
1070
  * - warehouseCreated
1071
1071
  * - 403:
@@ -1128,7 +1128,7 @@ export interface paths {
1128
1128
  * - codeConflict
1129
1129
  * - cityIdDoesNotExist
1130
1130
  * - branchDateShouldBeBetweenDateFoundedAndDateOfToday
1131
- * - cityMismatchWithCountry
1131
+ * - CityDoesNotBelongToSelectedCountry
1132
1132
  * - 500:
1133
1133
  * - internalServerError
1134
1134
  */
@@ -3861,8 +3861,6 @@ export interface paths {
3861
3861
  * - regionCreated
3862
3862
  * - 400:
3863
3863
  * - country+regionConflict
3864
- * - citiesDoesNotExist
3865
- * - cityCountriesMustMatchRegionCountry
3866
3864
  * - 403:
3867
3865
  * - permissionDenied
3868
3866
  * - 500:
@@ -3921,8 +3919,6 @@ export interface paths {
3921
3919
  * - 400:
3922
3920
  * - noChangesDetected
3923
3921
  * - country+regionConflict
3924
- * - citiesDoesNotExist
3925
- * - cityCountriesMustMatchRegionCountry
3926
3922
  * - 403:
3927
3923
  * - permissionDenied
3928
3924
  * - 404:
@@ -4723,7 +4719,7 @@ export interface paths {
4723
4719
  * - "priceListDoesNotExist
4724
4720
  * - "cityDoesNotExist"
4725
4721
  * - "walkInCustomerExists"
4726
- * - cityMismatchWithCountry
4722
+ * - RegionDoesNotBelongToSelectedCountry
4727
4723
  * - CityDoesNotBelongToSelectedRegion
4728
4724
  * - 403: "permissionDenied"
4729
4725
  * - 500: "serverError"
@@ -4756,7 +4752,7 @@ export interface paths {
4756
4752
  * - "currencyIdDoesNotExist"
4757
4753
  * - "priceListDoesNotExist
4758
4754
  * - "cityDoesNotExist"
4759
- * - cityMismatchWithCountry
4755
+ * - RegionDoesNotBelongToSelectedCountry
4760
4756
  * - CityDoesNotBelongToSelectedRegion
4761
4757
  * - 403: "permissionDenied"
4762
4758
  * - 500: "serverError"
@@ -4850,7 +4846,7 @@ export interface paths {
4850
4846
  * - "regionDoesNotExist"
4851
4847
  * - "currencyIdDoesNotExist"
4852
4848
  * - "cityDoesNotExist"
4853
- * - cityMismatchWithCountry
4849
+ * - RegionDoesNotBelongToSelectedCountry
4854
4850
  * - CityDoesNotBelongToSelectedRegion
4855
4851
  * - 403: "permissionDenied"
4856
4852
  * - 500: "serverError"
@@ -4894,7 +4890,7 @@ export interface paths {
4894
4890
  * - "currencyIdDoesNotExist"
4895
4891
  * - "priceListDoesNotExist
4896
4892
  * - "cityDoesNotExist"
4897
- * - cityMismatchWithCountry
4893
+ * - RegionDoesNotBelongToSelectedCountry
4898
4894
  * - CityDoesNotBelongToSelectedRegion
4899
4895
  * - 403: "permissionDenied"
4900
4896
  * - 404: "supplierDoesNotExist"
@@ -9847,6 +9843,14 @@ export interface components {
9847
9843
  /** Lastname */
9848
9844
  lastName: string;
9849
9845
  };
9846
+ /** RegionSharedSchema */
9847
+ RegionSharedSchema: {
9848
+ /** Id */
9849
+ id: number;
9850
+ /** Region */
9851
+ region: string;
9852
+ country: components["schemas"]["CountryCodes"];
9853
+ };
9850
9854
  /** RetrieveBranch */
9851
9855
  RetrieveBranch: {
9852
9856
  /** Id */
@@ -9885,11 +9889,11 @@ export interface components {
9885
9889
  dateModified: string | null;
9886
9890
  createdBy: components["schemas"]["RecordUserSchema"];
9887
9891
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
9888
- /** Name */
9889
- name: string;
9890
9892
  /** Id */
9891
9893
  id: number;
9892
- country: components["schemas"]["CountryCodes"];
9894
+ /** Name */
9895
+ name: string;
9896
+ region: components["schemas"]["RegionSharedSchema"];
9893
9897
  };
9894
9898
  /** userCommon */
9895
9899
  userCommon: {
@@ -11476,7 +11480,7 @@ export interface components {
11476
11480
  mobile?: string | null;
11477
11481
  /** Fax */
11478
11482
  fax?: string | null;
11479
- country: components["schemas"]["CountryNames"];
11483
+ country: components["schemas"]["CountryCodes"];
11480
11484
  /** Postalcode */
11481
11485
  postalcode?: string | null;
11482
11486
  /** Cityid */
@@ -11489,11 +11493,6 @@ export interface components {
11489
11493
  image: string | null;
11490
11494
  type: components["schemas"]["CompanyType"];
11491
11495
  };
11492
- /**
11493
- * CountryNames
11494
- * @enum {string}
11495
- */
11496
- CountryNames: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
11497
11496
  /** UpdateCompany */
11498
11497
  UpdateCompany: {
11499
11498
  /** Name */
@@ -11532,7 +11531,7 @@ export interface components {
11532
11531
  image?: string | null;
11533
11532
  /** Currency */
11534
11533
  currency?: string;
11535
- country?: components["schemas"]["CountryNames"];
11534
+ country?: components["schemas"]["CountryCodes"];
11536
11535
  type?: components["schemas"]["CompanyType"];
11537
11536
  };
11538
11537
  /** SettingsOptions */
@@ -12255,15 +12254,6 @@ export interface components {
12255
12254
  status?: components["schemas"]["StatusChoicesInMutation"];
12256
12255
  journalItems: components["schemas"]["UpdateJournalItemsSchema"];
12257
12256
  };
12258
- /** CommonCity */
12259
- CommonCity: {
12260
- /** Id */
12261
- id: number;
12262
- /** Name */
12263
- name: string;
12264
- /** Code */
12265
- code?: string | null;
12266
- };
12267
12257
  /** ListRegions */
12268
12258
  ListRegions: {
12269
12259
  info: components["schemas"]["PageInfoSchema"];
@@ -12287,8 +12277,6 @@ export interface components {
12287
12277
  region: string;
12288
12278
  /** Country */
12289
12279
  country: string;
12290
- /** Cities */
12291
- cities: components["schemas"]["CommonCity"][];
12292
12280
  /** Candelete */
12293
12281
  canDelete: boolean;
12294
12282
  };
@@ -13465,19 +13453,13 @@ export interface components {
13465
13453
  RegionSchema: {
13466
13454
  /** Region */
13467
13455
  region: string;
13468
- /** Country */
13469
- country: string;
13470
- /** Cities */
13471
- cities: number[];
13456
+ country: components["schemas"]["CountryCodes"];
13472
13457
  };
13473
13458
  /** UpdateRegion */
13474
13459
  UpdateRegion: {
13475
13460
  /** Region */
13476
13461
  region?: string | null;
13477
- /** Country */
13478
- country?: string | null;
13479
- /** Cities */
13480
- cities: number[];
13462
+ country?: components["schemas"]["CountryCodes"] | null;
13481
13463
  };
13482
13464
  /** RetrieveRegion */
13483
13465
  RetrieveRegion: {
@@ -13496,8 +13478,6 @@ export interface components {
13496
13478
  region: string;
13497
13479
  /** Country */
13498
13480
  country: string;
13499
- /** Cities */
13500
- cities: components["schemas"]["CommonCity"][];
13501
13481
  };
13502
13482
  /** profitAndLossSchema */
13503
13483
  profitAndLossSchema: {
@@ -14064,6 +14044,15 @@ export interface components {
14064
14044
  /** Type */
14065
14045
  type: string;
14066
14046
  };
14047
+ /** CommonCity */
14048
+ CommonCity: {
14049
+ /** Id */
14050
+ id: number;
14051
+ /** Name */
14052
+ name: string;
14053
+ /** Code */
14054
+ code?: string | null;
14055
+ };
14067
14056
  /** CommonCurrency */
14068
14057
  CommonCurrency: {
14069
14058
  /** Id */
@@ -14233,7 +14222,10 @@ export interface components {
14233
14222
  index?: number | null;
14234
14223
  /** Country */
14235
14224
  country: string;
14236
- /** City */
14225
+ /**
14226
+ * City
14227
+ * @description to get cities use /api/v1/settings/shipping/cities/ and filter by region equals to selected region by user
14228
+ */
14237
14229
  city: number;
14238
14230
  /** Address */
14239
14231
  address: string;
@@ -14671,7 +14663,10 @@ export interface components {
14671
14663
  * @default []
14672
14664
  */
14673
14665
  priceList: number[];
14674
- /** Region */
14666
+ /**
14667
+ * Region
14668
+ * @description to get regions use /api/v1/common/regions/ and filter by country equals to selected country by user
14669
+ */
14675
14670
  region: number;
14676
14671
  /** Email */
14677
14672
  email?: string | null;
@@ -15928,7 +15923,7 @@ export interface components {
15928
15923
  /**
15929
15924
  * Id
15930
15925
  * Format: uuid
15931
- * @example abac03db-539e-461e-b650-50eaef87b7d5
15926
+ * @example 5c95e39f-4d98-4890-a128-fe6c61bc643f
15932
15927
  */
15933
15928
  id: string;
15934
15929
  /**
@@ -16149,7 +16144,8 @@ export interface components {
16149
16144
  CitySchema: {
16150
16145
  /** Name */
16151
16146
  name: string;
16152
- country: components["schemas"]["CountryNames"];
16147
+ /** Region */
16148
+ region: number;
16153
16149
  };
16154
16150
  /** ListCities */
16155
16151
  ListCities: {
@@ -16168,11 +16164,11 @@ export interface components {
16168
16164
  dateModified: string | null;
16169
16165
  createdBy: components["schemas"]["RecordUserSchema"];
16170
16166
  modifiedBy: components["schemas"]["RecordUserSchema"] | null;
16171
- /** Name */
16172
- name: string;
16173
16167
  /** Id */
16174
16168
  id: number;
16175
- country: components["schemas"]["CountryCodes"];
16169
+ /** Name */
16170
+ name: string;
16171
+ region: components["schemas"]["RegionSharedSchema"];
16176
16172
  /** Candelete */
16177
16173
  canDelete: boolean;
16178
16174
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.220",
3
+ "version": "1.0.221",
4
4
  "main": "openapi.ts"
5
5
  }