@investtal/models 1.5.0 → 1.5.2

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/dist/index.d.cts CHANGED
@@ -7154,6 +7154,62 @@ type PropertiesFilter = {
7154
7154
  maxPrice?: string | undefined;
7155
7155
  };
7156
7156
  //#endregion
7157
+ //#region src/generated/location/ports/location-read.port.d.ts
7158
+ interface ProvinceListFilter {
7159
+ search?: string;
7160
+ codeName?: string;
7161
+ code?: string;
7162
+ name?: string;
7163
+ nameEn?: string;
7164
+ fullName?: string;
7165
+ fullNameEn?: string;
7166
+ administrativeUnitId?: string;
7167
+ administrativeRegionId?: string;
7168
+ }
7169
+ interface WardListFilter {
7170
+ search?: string;
7171
+ codeName?: string;
7172
+ code?: string;
7173
+ name?: string;
7174
+ nameEn?: string;
7175
+ fullName?: string;
7176
+ fullNameEn?: string;
7177
+ provinceCode?: string;
7178
+ }
7179
+ interface ProvinceModel {
7180
+ code: string;
7181
+ name: string;
7182
+ nameEn?: string;
7183
+ fullName?: string;
7184
+ fullNameEn?: string;
7185
+ codeName: string;
7186
+ }
7187
+ interface WardModel {
7188
+ code: string;
7189
+ name: string;
7190
+ nameEn?: string;
7191
+ fullName?: string;
7192
+ fullNameEn?: string;
7193
+ codeName: string;
7194
+ provinceCode: string;
7195
+ }
7196
+ interface LocationReadPort {
7197
+ listProvinces(filter: ProvinceListFilter): Promise<ProvinceModel[]>;
7198
+ listWards(filter: WardListFilter): Promise<WardModel[]>;
7199
+ findProvinceById(id: string): Promise<{
7200
+ id: string;
7201
+ } | undefined>;
7202
+ findWardById(id: string, provinceId?: string): Promise<{
7203
+ id: string;
7204
+ } | undefined>;
7205
+ findProvincesByIds(ids: string[]): Promise<(ProvinceModel & {
7206
+ id: string;
7207
+ })[]>;
7208
+ findWardsByIds(ids: string[]): Promise<(WardModel & {
7209
+ id: string;
7210
+ })[]>;
7211
+ }
7212
+ //#endregion
7157
7213
  //#region src/generated/media/ports/get-media.response.d.ts
7158
7214
  interface MediaResponse extends BaseRes {
7159
7215
  id: string;
@@ -7221,7 +7277,9 @@ interface PropertyItem {
7221
7277
  projectId?: string;
7222
7278
  parentId?: string;
7223
7279
  provinceId: string;
7280
+ province?: ProvinceModel;
7224
7281
  wardId: string;
7282
+ ward?: WardModel;
7225
7283
  detailedAddress: string;
7226
7284
  propertyLegalStatus: string;
7227
7285
  landCurrentStatus: string;
@@ -7745,56 +7803,6 @@ declare const WardExceptions: {
7745
7803
  WARD_NOT_FOUND: string;
7746
7804
  };
7747
7805
  //#endregion
7748
- //#region src/generated/location/ports/location-read.port.d.ts
7749
- interface ProvinceListFilter {
7750
- search?: string;
7751
- codeName?: string;
7752
- code?: string;
7753
- name?: string;
7754
- nameEn?: string;
7755
- fullName?: string;
7756
- fullNameEn?: string;
7757
- administrativeUnitId?: string;
7758
- administrativeRegionId?: string;
7759
- }
7760
- interface WardListFilter {
7761
- search?: string;
7762
- codeName?: string;
7763
- code?: string;
7764
- name?: string;
7765
- nameEn?: string;
7766
- fullName?: string;
7767
- fullNameEn?: string;
7768
- provinceCode?: string;
7769
- }
7770
- interface ProvinceModel {
7771
- code: string;
7772
- name: string;
7773
- nameEn?: string;
7774
- fullName?: string;
7775
- fullNameEn?: string;
7776
- codeName: string;
7777
- }
7778
- interface WardModel {
7779
- code: string;
7780
- name: string;
7781
- nameEn?: string;
7782
- fullName?: string;
7783
- fullNameEn?: string;
7784
- codeName: string;
7785
- provinceCode: string;
7786
- }
7787
- interface LocationReadPort {
7788
- listProvinces(filter: ProvinceListFilter): Promise<ProvinceModel[]>;
7789
- listWards(filter: WardListFilter): Promise<WardModel[]>;
7790
- findProvinceById(id: string): Promise<{
7791
- id: string;
7792
- } | undefined>;
7793
- findWardById(id: string, provinceId?: string): Promise<{
7794
- id: string;
7795
- } | undefined>;
7796
- }
7797
- //#endregion
7798
7806
  //#region src/generated/media/exceptions.d.ts
7799
7807
  declare const MediaExceptions: {
7800
7808
  MEDIA_NOT_FOUND: string;
package/dist/index.d.mts CHANGED
@@ -7154,6 +7154,62 @@ type PropertiesFilter = {
7154
7154
  maxPrice?: string | undefined;
7155
7155
  };
7156
7156
  //#endregion
7157
+ //#region src/generated/location/ports/location-read.port.d.ts
7158
+ interface ProvinceListFilter {
7159
+ search?: string;
7160
+ codeName?: string;
7161
+ code?: string;
7162
+ name?: string;
7163
+ nameEn?: string;
7164
+ fullName?: string;
7165
+ fullNameEn?: string;
7166
+ administrativeUnitId?: string;
7167
+ administrativeRegionId?: string;
7168
+ }
7169
+ interface WardListFilter {
7170
+ search?: string;
7171
+ codeName?: string;
7172
+ code?: string;
7173
+ name?: string;
7174
+ nameEn?: string;
7175
+ fullName?: string;
7176
+ fullNameEn?: string;
7177
+ provinceCode?: string;
7178
+ }
7179
+ interface ProvinceModel {
7180
+ code: string;
7181
+ name: string;
7182
+ nameEn?: string;
7183
+ fullName?: string;
7184
+ fullNameEn?: string;
7185
+ codeName: string;
7186
+ }
7187
+ interface WardModel {
7188
+ code: string;
7189
+ name: string;
7190
+ nameEn?: string;
7191
+ fullName?: string;
7192
+ fullNameEn?: string;
7193
+ codeName: string;
7194
+ provinceCode: string;
7195
+ }
7196
+ interface LocationReadPort {
7197
+ listProvinces(filter: ProvinceListFilter): Promise<ProvinceModel[]>;
7198
+ listWards(filter: WardListFilter): Promise<WardModel[]>;
7199
+ findProvinceById(id: string): Promise<{
7200
+ id: string;
7201
+ } | undefined>;
7202
+ findWardById(id: string, provinceId?: string): Promise<{
7203
+ id: string;
7204
+ } | undefined>;
7205
+ findProvincesByIds(ids: string[]): Promise<(ProvinceModel & {
7206
+ id: string;
7207
+ })[]>;
7208
+ findWardsByIds(ids: string[]): Promise<(WardModel & {
7209
+ id: string;
7210
+ })[]>;
7211
+ }
7212
+ //#endregion
7157
7213
  //#region src/generated/media/ports/get-media.response.d.ts
7158
7214
  interface MediaResponse extends BaseRes {
7159
7215
  id: string;
@@ -7221,7 +7277,9 @@ interface PropertyItem {
7221
7277
  projectId?: string;
7222
7278
  parentId?: string;
7223
7279
  provinceId: string;
7280
+ province?: ProvinceModel;
7224
7281
  wardId: string;
7282
+ ward?: WardModel;
7225
7283
  detailedAddress: string;
7226
7284
  propertyLegalStatus: string;
7227
7285
  landCurrentStatus: string;
@@ -7745,56 +7803,6 @@ declare const WardExceptions: {
7745
7803
  WARD_NOT_FOUND: string;
7746
7804
  };
7747
7805
  //#endregion
7748
- //#region src/generated/location/ports/location-read.port.d.ts
7749
- interface ProvinceListFilter {
7750
- search?: string;
7751
- codeName?: string;
7752
- code?: string;
7753
- name?: string;
7754
- nameEn?: string;
7755
- fullName?: string;
7756
- fullNameEn?: string;
7757
- administrativeUnitId?: string;
7758
- administrativeRegionId?: string;
7759
- }
7760
- interface WardListFilter {
7761
- search?: string;
7762
- codeName?: string;
7763
- code?: string;
7764
- name?: string;
7765
- nameEn?: string;
7766
- fullName?: string;
7767
- fullNameEn?: string;
7768
- provinceCode?: string;
7769
- }
7770
- interface ProvinceModel {
7771
- code: string;
7772
- name: string;
7773
- nameEn?: string;
7774
- fullName?: string;
7775
- fullNameEn?: string;
7776
- codeName: string;
7777
- }
7778
- interface WardModel {
7779
- code: string;
7780
- name: string;
7781
- nameEn?: string;
7782
- fullName?: string;
7783
- fullNameEn?: string;
7784
- codeName: string;
7785
- provinceCode: string;
7786
- }
7787
- interface LocationReadPort {
7788
- listProvinces(filter: ProvinceListFilter): Promise<ProvinceModel[]>;
7789
- listWards(filter: WardListFilter): Promise<WardModel[]>;
7790
- findProvinceById(id: string): Promise<{
7791
- id: string;
7792
- } | undefined>;
7793
- findWardById(id: string, provinceId?: string): Promise<{
7794
- id: string;
7795
- } | undefined>;
7796
- }
7797
- //#endregion
7798
7806
  //#region src/generated/media/exceptions.d.ts
7799
7807
  declare const MediaExceptions: {
7800
7808
  MEDIA_NOT_FOUND: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@investtal/models",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "license": "PRIVATE",
5
5
  "description": "Investtal shared domain types, enums, and exception messages",
6
6
  "author": "Harry Tran <nhattq.coding@gmail.com>",