@wix/sdk-types 1.13.15 → 1.13.17

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.
@@ -386,7 +386,7 @@ type SortOrder = 'ASC' | 'DESC';
386
386
  /**
387
387
  * Sort capability type for defining field sort options in SearchSpec
388
388
  */
389
- type SortCapability = SortOrder | 'BOTH';
389
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
390
390
  /**
391
391
  * Constants for sort directions
392
392
  */
@@ -399,6 +399,7 @@ declare const SORT_DIRECTIONS: {
399
399
  */
400
400
  declare const SORT_CAPABILITIES: {
401
401
  readonly BOTH: "BOTH";
402
+ readonly NONE: "NONE";
402
403
  readonly ASC: "ASC";
403
404
  readonly DESC: "DESC";
404
405
  };
@@ -435,6 +436,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
435
436
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
436
437
  order: SortOrder;
437
438
  selectItemsBy?: Record<string, any>[] | null;
439
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
440
+ fieldName?: never;
441
+ order?: never;
442
+ selectItemsBy?: Record<string, any>[] | null;
438
443
  } : never : never;
439
444
  }[keyof Spec['wql']];
440
445
 
package/build/index.d.mts CHANGED
@@ -386,7 +386,7 @@ type SortOrder = 'ASC' | 'DESC';
386
386
  /**
387
387
  * Sort capability type for defining field sort options in SearchSpec
388
388
  */
389
- type SortCapability = SortOrder | 'BOTH';
389
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
390
390
  /**
391
391
  * Constants for sort directions
392
392
  */
@@ -399,6 +399,7 @@ declare const SORT_DIRECTIONS: {
399
399
  */
400
400
  declare const SORT_CAPABILITIES: {
401
401
  readonly BOTH: "BOTH";
402
+ readonly NONE: "NONE";
402
403
  readonly ASC: "ASC";
403
404
  readonly DESC: "DESC";
404
405
  };
@@ -435,6 +436,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
435
436
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
436
437
  order: SortOrder;
437
438
  selectItemsBy?: Record<string, any>[] | null;
439
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
440
+ fieldName?: never;
441
+ order?: never;
442
+ selectItemsBy?: Record<string, any>[] | null;
438
443
  } : never : never;
439
444
  }[keyof Spec['wql']];
440
445
 
package/build/index.d.ts CHANGED
@@ -386,7 +386,7 @@ type SortOrder = 'ASC' | 'DESC';
386
386
  /**
387
387
  * Sort capability type for defining field sort options in SearchSpec
388
388
  */
389
- type SortCapability = SortOrder | 'BOTH';
389
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
390
390
  /**
391
391
  * Constants for sort directions
392
392
  */
@@ -399,6 +399,7 @@ declare const SORT_DIRECTIONS: {
399
399
  */
400
400
  declare const SORT_CAPABILITIES: {
401
401
  readonly BOTH: "BOTH";
402
+ readonly NONE: "NONE";
402
403
  readonly ASC: "ASC";
403
404
  readonly DESC: "DESC";
404
405
  };
@@ -435,6 +436,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
435
436
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
436
437
  order: SortOrder;
437
438
  selectItemsBy?: Record<string, any>[] | null;
439
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
440
+ fieldName?: never;
441
+ order?: never;
442
+ selectItemsBy?: Record<string, any>[] | null;
438
443
  } : never : never;
439
444
  }[keyof Spec['wql']];
440
445
 
@@ -0,0 +1,7 @@
1
+ import type { Host } from '../src/host-modules.js';
2
+
3
+ declare global {
4
+ interface ContextualClient {
5
+ host: Host;
6
+ }
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "types": "client.d.ts",
3
+ "sideEffects": false
4
+ }
@@ -449,7 +449,7 @@ type SortOrder = 'ASC' | 'DESC';
449
449
  /**
450
450
  * Sort capability type for defining field sort options in SearchSpec
451
451
  */
452
- type SortCapability = SortOrder | 'BOTH';
452
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
453
453
  /**
454
454
  * Constants for sort directions
455
455
  */
@@ -462,6 +462,7 @@ declare const SORT_DIRECTIONS: {
462
462
  */
463
463
  declare const SORT_CAPABILITIES: {
464
464
  readonly BOTH: "BOTH";
465
+ readonly NONE: "NONE";
465
466
  readonly ASC: "ASC";
466
467
  readonly DESC: "DESC";
467
468
  };
@@ -498,6 +499,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
498
499
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
499
500
  order: SortOrder;
500
501
  selectItemsBy?: Record<string, any>[] | null;
502
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
503
+ fieldName?: never;
504
+ order?: never;
505
+ selectItemsBy?: Record<string, any>[] | null;
501
506
  } : never : never;
502
507
  }[keyof Spec['wql']];
503
508
 
@@ -449,7 +449,7 @@ type SortOrder = 'ASC' | 'DESC';
449
449
  /**
450
450
  * Sort capability type for defining field sort options in SearchSpec
451
451
  */
452
- type SortCapability = SortOrder | 'BOTH';
452
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
453
453
  /**
454
454
  * Constants for sort directions
455
455
  */
@@ -462,6 +462,7 @@ declare const SORT_DIRECTIONS: {
462
462
  */
463
463
  declare const SORT_CAPABILITIES: {
464
464
  readonly BOTH: "BOTH";
465
+ readonly NONE: "NONE";
465
466
  readonly ASC: "ASC";
466
467
  readonly DESC: "DESC";
467
468
  };
@@ -498,6 +499,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
498
499
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
499
500
  order: SortOrder;
500
501
  selectItemsBy?: Record<string, any>[] | null;
502
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
503
+ fieldName?: never;
504
+ order?: never;
505
+ selectItemsBy?: Record<string, any>[] | null;
501
506
  } : never : never;
502
507
  }[keyof Spec['wql']];
503
508
 
@@ -449,7 +449,7 @@ type SortOrder = 'ASC' | 'DESC';
449
449
  /**
450
450
  * Sort capability type for defining field sort options in SearchSpec
451
451
  */
452
- type SortCapability = SortOrder | 'BOTH';
452
+ type SortCapability = SortOrder | 'BOTH' | 'NONE';
453
453
  /**
454
454
  * Constants for sort directions
455
455
  */
@@ -462,6 +462,7 @@ declare const SORT_DIRECTIONS: {
462
462
  */
463
463
  declare const SORT_CAPABILITIES: {
464
464
  readonly BOTH: "BOTH";
465
+ readonly NONE: "NONE";
465
466
  readonly ASC: "ASC";
466
467
  readonly DESC: "DESC";
467
468
  };
@@ -498,6 +499,10 @@ type Sorting<Spec extends SearchSpec> = Spec['wql'] extends {
498
499
  fieldName: WQLFields<Spec['wql'][WQLGroupIndex]>;
499
500
  order: SortOrder;
500
501
  selectItemsBy?: Record<string, any>[] | null;
502
+ } : GroupSortCapability extends typeof SORT_CAPABILITIES.NONE ? {
503
+ fieldName?: never;
504
+ order?: never;
505
+ selectItemsBy?: Record<string, any>[] | null;
501
506
  } : never : never;
502
507
  }[keyof Spec['wql']];
503
508
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk-types",
3
- "version": "1.13.15",
3
+ "version": "1.13.17",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -13,7 +13,8 @@
13
13
  "types": "build/index.d.ts",
14
14
  "files": [
15
15
  "build",
16
- "internal"
16
+ "internal",
17
+ "client"
17
18
  ],
18
19
  "publishConfig": {
19
20
  "registry": "https://registry.npmjs.org/",
@@ -21,7 +22,7 @@
21
22
  },
22
23
  "scripts": {
23
24
  "build": "tsup",
24
- "test": "tsc --noEmit && tsup --config tsup.test.config.ts && vitest run",
25
+ "test": "tsc --noEmit && vitest run",
25
26
  "lint": "eslint --max-warnings=0 .",
26
27
  "typecheck": "tsc --noEmit"
27
28
  },
@@ -30,10 +31,10 @@
30
31
  },
31
32
  "dependencies": {
32
33
  "@wix/monitoring-types": "^0.12.0",
33
- "type-fest": "^4.40.1"
34
+ "type-fest": "^4.41.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@types/node": "^20.17.32",
37
+ "@types/node": "^20.17.46",
37
38
  "eslint": "^8.57.1",
38
39
  "eslint-config-sdk": "0.0.0",
39
40
  "tsup": "^7.3.0",
@@ -60,5 +61,5 @@
60
61
  "wallaby": {
61
62
  "autoDetect": true
62
63
  },
63
- "falconPackageHash": "0f960ec851726891ffbd7b0b46ac8625974d04e9840355facca1796c"
64
+ "falconPackageHash": "76f9877c5483eb5114d24da7e268a54bb6377d11b99b78f1db119bac"
64
65
  }