@agendize/js-agendize-api 1.41.1 → 1.42.0

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.
@@ -127,6 +127,7 @@ export declare class FormItemEntity {
127
127
  multiple?: boolean;
128
128
  bind?: string;
129
129
  bindGroup?: string;
130
+ countries?: string[];
130
131
  static fromFormDto(dto: FormItemDto, options?: FormDtoOptionParser): FormItemEntity;
131
132
  static fromWidgetFormItemDto(dto: WidgetFormItemDto): FormItemEntity;
132
133
  static toFormDto(entity: FormItemEntity): FormItemDto;
@@ -153,6 +154,7 @@ export declare class FormItemEntity {
153
154
  disabled: boolean | undefined;
154
155
  minlength: number | undefined;
155
156
  maxlength: number | undefined;
157
+ countries: string[] | undefined;
156
158
  };
157
159
  static formItemsToFormFields(formItems: FormItemEntity[], extractSubItem?: boolean, showInvisible?: boolean): any[] | undefined;
158
160
  }
@@ -196,6 +198,7 @@ export declare class FormItemDto {
196
198
  timeZone: string;
197
199
  };
198
200
  required?: boolean;
201
+ countries?: string[];
199
202
  }
200
203
  export declare class WidgetFormItemDto {
201
204
  id: string;
@@ -221,6 +224,7 @@ export declare class WidgetFormItemDto {
221
224
  category?: boolean;
222
225
  bind?: string;
223
226
  bindGroup?: string;
227
+ countries?: string[];
224
228
  }
225
229
  export declare class FormValueDto {
226
230
  id: string;
@@ -9433,6 +9433,7 @@ class Oe {
9433
9433
  a(this, "multiple");
9434
9434
  a(this, "bind");
9435
9435
  a(this, "bindGroup");
9436
+ a(this, "countries");
9436
9437
  }
9437
9438
  //TODO ces champs doivent être supprimé
9438
9439
  //name?: string
@@ -9453,7 +9454,7 @@ class Oe {
9453
9454
  r.value = n.split(x);
9454
9455
  } else
9455
9456
  r.value = n;
9456
- return t.zonedDateTime && (r.value = Te(t.zonedDateTime.dateTime, t.zonedDateTime.timeZone)), r;
9457
+ return t.zonedDateTime && (r.value = Te(t.zonedDateTime.dateTime, t.zonedDateTime.timeZone)), r.countries = t.countries, r;
9457
9458
  }
9458
9459
  static fromWidgetFormItemDto(t) {
9459
9460
  var n;
@@ -9462,7 +9463,7 @@ class Oe {
9462
9463
  const r = [];
9463
9464
  return (n = t.values) == null || n.forEach((i) => {
9464
9465
  r.push(or.fromCustomFormValueDto(i));
9465
- }), e.values = r, e.readonly = t.readonly, e.fileName = t.fileName, e.multiple = t.multiple, e.category = t.category, e.pattern = t.pattern, e.minlength = t.minlength, e.maxlength = t.maxlength, e.formatType = t.pattern ? "regex" : "none", e.externalId = t.externalId, e.help = t.help, e.placeholder = t.placeholder, e.bind = t.bind, e.bindGroup = t.bindGroup, e.value = I(t.value), e;
9466
+ }), e.values = r, e.readonly = t.readonly, e.fileName = t.fileName, e.multiple = t.multiple, e.category = t.category, e.pattern = t.pattern, e.minlength = t.minlength, e.maxlength = t.maxlength, e.formatType = t.pattern ? "regex" : "none", e.externalId = t.externalId, e.help = t.help, e.placeholder = t.placeholder, e.bind = t.bind, e.bindGroup = t.bindGroup, e.value = I(t.value), e.countries = t.countries, e;
9466
9467
  }
9467
9468
  static toFormDto(t) {
9468
9469
  var o, c, l;
@@ -9513,7 +9514,8 @@ class Oe {
9513
9514
  pattern: t.pattern,
9514
9515
  disabled: t.disabled,
9515
9516
  minlength: t.minlength,
9516
- maxlength: t.maxlength
9517
+ maxlength: t.maxlength,
9518
+ countries: t.countries
9517
9519
  };
9518
9520
  }
9519
9521
  static formItemsToFormFields(t, e = !1, r = !1) {
@@ -9560,6 +9562,7 @@ class cw {
9560
9562
  a(this, "zonedDateTime");
9561
9563
  //champs spécifiques à l'api public
9562
9564
  a(this, "required");
9565
+ a(this, "countries");
9563
9566
  }
9564
9567
  }
9565
9568
  class lw {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agendize/js-agendize-api",
3
- "version": "1.41.1",
3
+ "version": "1.42.0",
4
4
  "description": "JavaScript wrapper for call Agendize API",
5
5
  "type": "module",
6
6
  "private": false,
@@ -55,14 +55,14 @@
55
55
  "fake-indexeddb": "^6.0.0",
56
56
  "qs": "^6.14.0",
57
57
  "rollup-plugin-visualizer": "^5.14.0",
58
- "typescript": "^5.7.3",
59
- "vite": "^6.0.9",
60
- "vite-plugin-mkcert": "^1.17.6",
58
+ "typescript": "^5.9.3",
59
+ "vite": "^6.3.7",
60
+ "vite-plugin-mkcert": "^1.17.9",
61
61
  "vitest": "3.1.3"
62
62
  },
63
63
  "dependencies": {
64
64
  "axios": "^1.7.9",
65
- "idb": "^8.0.1",
65
+ "idb": "^8.0.3",
66
66
  "luxon": "^3.5.0",
67
67
  "type-pubsub": "^0.1.4",
68
68
  "zod": "^3.24.2"