@wix/wix-data-items-common 1.0.306 → 1.0.308

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.
Files changed (139) hide show
  1. package/dist/cjs/api/WixDataAggregateOptionsBuilder.js +90 -0
  2. package/dist/cjs/api/WixDataAggregateOptionsBuilder.js.map +1 -0
  3. package/dist/cjs/api/WixDataApi.js +38 -28
  4. package/dist/cjs/api/WixDataApi.js.map +1 -1
  5. package/dist/cjs/api/WixDataAsyncPatchByFilterOptionsBuilder.js +43 -0
  6. package/dist/cjs/api/WixDataAsyncPatchByFilterOptionsBuilder.js.map +1 -0
  7. package/dist/cjs/api/WixDataAsyncRemoveByFilterOptionsBuilder.js +43 -0
  8. package/dist/cjs/api/WixDataAsyncRemoveByFilterOptionsBuilder.js.map +1 -0
  9. package/dist/cjs/api/WixDataBulkInsertOptionsBuilder.js +65 -0
  10. package/dist/cjs/api/WixDataBulkInsertOptionsBuilder.js.map +1 -0
  11. package/dist/cjs/api/WixDataBulkPatchOptionsBuilder.js +60 -0
  12. package/dist/cjs/api/WixDataBulkPatchOptionsBuilder.js.map +1 -0
  13. package/dist/cjs/api/WixDataBulkRemoveOptionsBuilder.js +60 -0
  14. package/dist/cjs/api/WixDataBulkRemoveOptionsBuilder.js.map +1 -0
  15. package/dist/cjs/api/WixDataBulkSaveOptionsBuilder.js +60 -0
  16. package/dist/cjs/api/WixDataBulkSaveOptionsBuilder.js.map +1 -0
  17. package/dist/cjs/api/WixDataBulkUpdateOptionsBuilder.js +65 -0
  18. package/dist/cjs/api/WixDataBulkUpdateOptionsBuilder.js.map +1 -0
  19. package/dist/cjs/api/WixDataCountOptionsBuilder.js +70 -0
  20. package/dist/cjs/api/WixDataCountOptionsBuilder.js.map +1 -0
  21. package/dist/cjs/api/WixDataDistinctOptionsBuilder.js +124 -0
  22. package/dist/cjs/api/WixDataDistinctOptionsBuilder.js.map +1 -0
  23. package/dist/cjs/api/WixDataGetOptionsBuilder.js +93 -0
  24. package/dist/cjs/api/WixDataGetOptionsBuilder.js.map +1 -0
  25. package/dist/cjs/api/WixDataInsertOptionsBuilder.js +65 -0
  26. package/dist/cjs/api/WixDataInsertOptionsBuilder.js.map +1 -0
  27. package/dist/cjs/api/WixDataIsReferencedOptionsBuilder.js +38 -0
  28. package/dist/cjs/api/WixDataIsReferencedOptionsBuilder.js.map +1 -0
  29. package/dist/cjs/api/WixDataPatch.js.map +1 -1
  30. package/dist/cjs/api/WixDataPatchOptionsBuilder.js +48 -0
  31. package/dist/cjs/api/WixDataPatchOptionsBuilder.js.map +1 -0
  32. package/dist/cjs/api/WixDataQueryOptionsBuilder.js +90 -0
  33. package/dist/cjs/api/WixDataQueryOptionsBuilder.js.map +1 -0
  34. package/dist/cjs/api/WixDataQueryReferencedItemsOptionsBuilder.js +127 -0
  35. package/dist/cjs/api/WixDataQueryReferencedItemsOptionsBuilder.js.map +1 -0
  36. package/dist/cjs/api/WixDataRemoveOptionsBuilder.js +60 -0
  37. package/dist/cjs/api/WixDataRemoveOptionsBuilder.js.map +1 -0
  38. package/dist/cjs/api/WixDataSaveOptionsBuilder.js +65 -0
  39. package/dist/cjs/api/WixDataSaveOptionsBuilder.js.map +1 -0
  40. package/dist/cjs/api/WixDataSearchOptionsBuilder.js +50 -0
  41. package/dist/cjs/api/WixDataSearchOptionsBuilder.js.map +1 -0
  42. package/dist/cjs/api/WixDataUpdateOptionsBuilder.js +70 -0
  43. package/dist/cjs/api/WixDataUpdateOptionsBuilder.js.map +1 -0
  44. package/dist/cjs/api/index.js +47 -4
  45. package/dist/cjs/api/index.js.map +1 -1
  46. package/dist/cjs/api/types.js.map +1 -1
  47. package/dist/esm/api/WixDataAggregateOptionsBuilder.js +61 -0
  48. package/dist/esm/api/WixDataAggregateOptionsBuilder.js.map +1 -0
  49. package/dist/esm/api/WixDataApi.js +37 -23
  50. package/dist/esm/api/WixDataApi.js.map +1 -1
  51. package/dist/esm/api/WixDataAsyncPatchByFilterOptionsBuilder.js +28 -0
  52. package/dist/esm/api/WixDataAsyncPatchByFilterOptionsBuilder.js.map +1 -0
  53. package/dist/esm/api/WixDataAsyncRemoveByFilterOptionsBuilder.js +28 -0
  54. package/dist/esm/api/WixDataAsyncRemoveByFilterOptionsBuilder.js.map +1 -0
  55. package/dist/esm/api/WixDataBulkInsertOptionsBuilder.js +40 -0
  56. package/dist/esm/api/WixDataBulkInsertOptionsBuilder.js.map +1 -0
  57. package/dist/esm/api/WixDataBulkPatchOptionsBuilder.js +37 -0
  58. package/dist/esm/api/WixDataBulkPatchOptionsBuilder.js.map +1 -0
  59. package/dist/esm/api/WixDataBulkRemoveOptionsBuilder.js +37 -0
  60. package/dist/esm/api/WixDataBulkRemoveOptionsBuilder.js.map +1 -0
  61. package/dist/esm/api/WixDataBulkSaveOptionsBuilder.js +37 -0
  62. package/dist/esm/api/WixDataBulkSaveOptionsBuilder.js.map +1 -0
  63. package/dist/esm/api/WixDataBulkUpdateOptionsBuilder.js +40 -0
  64. package/dist/esm/api/WixDataBulkUpdateOptionsBuilder.js.map +1 -0
  65. package/dist/esm/api/WixDataCountOptionsBuilder.js +43 -0
  66. package/dist/esm/api/WixDataCountOptionsBuilder.js.map +1 -0
  67. package/dist/esm/api/WixDataDistinctOptionsBuilder.js +77 -0
  68. package/dist/esm/api/WixDataDistinctOptionsBuilder.js.map +1 -0
  69. package/dist/esm/api/WixDataGetOptionsBuilder.js +62 -0
  70. package/dist/esm/api/WixDataGetOptionsBuilder.js.map +1 -0
  71. package/dist/esm/api/WixDataInsertOptionsBuilder.js +40 -0
  72. package/dist/esm/api/WixDataInsertOptionsBuilder.js.map +1 -0
  73. package/dist/esm/api/WixDataIsReferencedOptionsBuilder.js +25 -0
  74. package/dist/esm/api/WixDataIsReferencedOptionsBuilder.js.map +1 -0
  75. package/dist/esm/api/WixDataPatchOptionsBuilder.js +31 -0
  76. package/dist/esm/api/WixDataPatchOptionsBuilder.js.map +1 -0
  77. package/dist/esm/api/WixDataQueryOptionsBuilder.js +61 -0
  78. package/dist/esm/api/WixDataQueryOptionsBuilder.js.map +1 -0
  79. package/dist/esm/api/WixDataQueryReferencedItemsOptionsBuilder.js +78 -0
  80. package/dist/esm/api/WixDataQueryReferencedItemsOptionsBuilder.js.map +1 -0
  81. package/dist/esm/api/WixDataRemoveOptionsBuilder.js +37 -0
  82. package/dist/esm/api/WixDataRemoveOptionsBuilder.js.map +1 -0
  83. package/dist/esm/api/WixDataSaveOptionsBuilder.js +40 -0
  84. package/dist/esm/api/WixDataSaveOptionsBuilder.js.map +1 -0
  85. package/dist/esm/api/WixDataSearchOptionsBuilder.js +37 -0
  86. package/dist/esm/api/WixDataSearchOptionsBuilder.js.map +1 -0
  87. package/dist/esm/api/WixDataUpdateOptionsBuilder.js +43 -0
  88. package/dist/esm/api/WixDataUpdateOptionsBuilder.js.map +1 -0
  89. package/dist/esm/api/index.js +20 -0
  90. package/dist/esm/api/index.js.map +1 -1
  91. package/dist/types/api/WixDataAggregateOptionsBuilder.d.ts +25 -0
  92. package/dist/types/api/WixDataAggregateOptionsBuilder.d.ts.map +1 -0
  93. package/dist/types/api/WixDataApi.d.ts +10 -12
  94. package/dist/types/api/WixDataApi.d.ts.map +1 -1
  95. package/dist/types/api/WixDataAsyncPatchByFilterOptionsBuilder.d.ts +16 -0
  96. package/dist/types/api/WixDataAsyncPatchByFilterOptionsBuilder.d.ts.map +1 -0
  97. package/dist/types/api/WixDataAsyncRemoveByFilterOptionsBuilder.d.ts +16 -0
  98. package/dist/types/api/WixDataAsyncRemoveByFilterOptionsBuilder.d.ts.map +1 -0
  99. package/dist/types/api/WixDataBulkInsertOptionsBuilder.d.ts +19 -0
  100. package/dist/types/api/WixDataBulkInsertOptionsBuilder.d.ts.map +1 -0
  101. package/dist/types/api/WixDataBulkPatchOptionsBuilder.d.ts +20 -0
  102. package/dist/types/api/WixDataBulkPatchOptionsBuilder.d.ts.map +1 -0
  103. package/dist/types/api/WixDataBulkRemoveOptionsBuilder.d.ts +19 -0
  104. package/dist/types/api/WixDataBulkRemoveOptionsBuilder.d.ts.map +1 -0
  105. package/dist/types/api/WixDataBulkSaveOptionsBuilder.d.ts +18 -0
  106. package/dist/types/api/WixDataBulkSaveOptionsBuilder.d.ts.map +1 -0
  107. package/dist/types/api/WixDataBulkUpdateOptionsBuilder.d.ts +20 -0
  108. package/dist/types/api/WixDataBulkUpdateOptionsBuilder.d.ts.map +1 -0
  109. package/dist/types/api/WixDataCountOptionsBuilder.d.ts +21 -0
  110. package/dist/types/api/WixDataCountOptionsBuilder.d.ts.map +1 -0
  111. package/dist/types/api/WixDataDistinctOptionsBuilder.d.ts +37 -0
  112. package/dist/types/api/WixDataDistinctOptionsBuilder.d.ts.map +1 -0
  113. package/dist/types/api/WixDataGetOptionsBuilder.d.ts +25 -0
  114. package/dist/types/api/WixDataGetOptionsBuilder.d.ts.map +1 -0
  115. package/dist/types/api/WixDataInsertOptionsBuilder.d.ts +19 -0
  116. package/dist/types/api/WixDataInsertOptionsBuilder.d.ts.map +1 -0
  117. package/dist/types/api/WixDataIsReferencedOptionsBuilder.d.ts +15 -0
  118. package/dist/types/api/WixDataIsReferencedOptionsBuilder.d.ts.map +1 -0
  119. package/dist/types/api/WixDataPatch.d.ts +3 -4
  120. package/dist/types/api/WixDataPatch.d.ts.map +1 -1
  121. package/dist/types/api/WixDataPatchOptionsBuilder.d.ts +19 -0
  122. package/dist/types/api/WixDataPatchOptionsBuilder.d.ts.map +1 -0
  123. package/dist/types/api/WixDataQueryOptionsBuilder.d.ts +25 -0
  124. package/dist/types/api/WixDataQueryOptionsBuilder.d.ts.map +1 -0
  125. package/dist/types/api/WixDataQueryReferencedItemsOptionsBuilder.d.ts +36 -0
  126. package/dist/types/api/WixDataQueryReferencedItemsOptionsBuilder.d.ts.map +1 -0
  127. package/dist/types/api/WixDataRemoveOptionsBuilder.d.ts +19 -0
  128. package/dist/types/api/WixDataRemoveOptionsBuilder.d.ts.map +1 -0
  129. package/dist/types/api/WixDataSaveOptionsBuilder.d.ts +19 -0
  130. package/dist/types/api/WixDataSaveOptionsBuilder.d.ts.map +1 -0
  131. package/dist/types/api/WixDataSearchOptionsBuilder.d.ts +19 -0
  132. package/dist/types/api/WixDataSearchOptionsBuilder.d.ts.map +1 -0
  133. package/dist/types/api/WixDataUpdateOptionsBuilder.d.ts +21 -0
  134. package/dist/types/api/WixDataUpdateOptionsBuilder.d.ts.map +1 -0
  135. package/dist/types/api/index.d.ts +42 -2
  136. package/dist/types/api/index.d.ts.map +1 -1
  137. package/dist/types/api/types.d.ts +145 -14
  138. package/dist/types/api/types.d.ts.map +1 -1
  139. package/package.json +2 -2
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SaveOptionsBuilder = void 0;
5
+ /**
6
+ * WixData save options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataSaveOptionsBuilderImpl {
11
+ constructor(options = {}) {
12
+ this.options = options;
13
+ }
14
+ withSuppressHooks(value) {
15
+ return this.copy({
16
+ suppressHooks: value
17
+ });
18
+ }
19
+ withShowDrafts(value) {
20
+ return this.copy({
21
+ showDrafts: value
22
+ });
23
+ }
24
+ withAppOptions(value) {
25
+ return this.copy({
26
+ appOptions: {
27
+ ...value
28
+ }
29
+ });
30
+ }
31
+ withIncludeReferences(value) {
32
+ return this.copy({
33
+ includeReferences: value
34
+ });
35
+ }
36
+ withSaveReferences(value) {
37
+ return this.copy({
38
+ saveReferences: value
39
+ });
40
+ }
41
+ build() {
42
+ return {
43
+ ...this.options,
44
+ ...(this.options.appOptions ? {
45
+ appOptions: {
46
+ ...this.options.appOptions
47
+ }
48
+ } : {})
49
+ };
50
+ }
51
+ copy(options) {
52
+ return new WixDataSaveOptionsBuilderImpl({
53
+ ...this.options,
54
+ ...options
55
+ });
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Creates a new WixData save options builder.
61
+ * @internal
62
+ */
63
+ const SaveOptionsBuilder = () => new WixDataSaveOptionsBuilderImpl();
64
+ exports.SaveOptionsBuilder = SaveOptionsBuilder;
65
+ //# sourceMappingURL=WixDataSaveOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataSaveOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withIncludeReferences","includeReferences","withSaveReferences","saveReferences","build","SaveOptionsBuilder","exports"],"sources":["../../../src/api/WixDataSaveOptionsBuilder.ts"],"sourcesContent":["import type { WixDataSaveOptions } from './types'\n\n/**\n * WixData save options builder.\n * @internal\n */\nexport interface WixDataSaveOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataSaveOptionsBuilder\n withShowDrafts(value: boolean): WixDataSaveOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataSaveOptionsBuilder\n withIncludeReferences(value: boolean): WixDataSaveOptionsBuilder\n withSaveReferences(value: boolean): WixDataSaveOptionsBuilder\n build(): WixDataSaveOptions\n}\n\nclass WixDataSaveOptionsBuilderImpl implements WixDataSaveOptionsBuilder {\n constructor(private readonly options: WixDataSaveOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataSaveOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataSaveOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataSaveOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withIncludeReferences(value: boolean): WixDataSaveOptionsBuilder {\n return this.copy({ includeReferences: value })\n }\n\n withSaveReferences(value: boolean): WixDataSaveOptionsBuilder {\n return this.copy({ saveReferences: value })\n }\n\n build(): WixDataSaveOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n }\n }\n\n private copy(options: WixDataSaveOptions): WixDataSaveOptionsBuilder {\n return new WixDataSaveOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData save options builder.\n * @internal\n */\nexport const SaveOptionsBuilder: () => WixDataSaveOptionsBuilder = () =>\n new WixDataSaveOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AAUA,MAAMA,6BAA6B,CAAsC;EACvEC,WAAWA,CAAkBC,OAA2B,GAAG,CAAC,CAAC,EAAE;IAAA,KAAlCA,OAA2B,GAA3BA,OAA2B;EAAQ;EAEhEC,iBAAiBA,CAACC,KAAc,EAA6B;IAC3D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,aAAa,EAAEF;IAAM,CAAC,CAAC;EAC5C;EAEAG,cAAcA,CAACH,KAAc,EAA6B;IACxD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEG,UAAU,EAAEJ;IAAM,CAAC,CAAC;EACzC;EAEAK,cAAcA,CAACL,KAA0B,EAA6B;IACpE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEK,UAAU,EAAE;QAAE,GAAGN;MAAM;IAAE,CAAC,CAAC;EAChD;EAEAO,qBAAqBA,CAACP,KAAc,EAA6B;IAC/D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEO,iBAAiB,EAAER;IAAM,CAAC,CAAC;EAChD;EAEAS,kBAAkBA,CAACT,KAAc,EAA6B;IAC5D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAES,cAAc,EAAEV;IAAM,CAAC,CAAC;EAC7C;EAEAW,KAAKA,CAAA,EAAuB;IAC1B,OAAO;MACL,GAAG,IAAI,CAACb,OAAO;MACf,IAAI,IAAI,CAACA,OAAO,CAACQ,UAAU,GACvB;QAAEA,UAAU,EAAE;UAAE,GAAG,IAAI,CAACR,OAAO,CAACQ;QAAW;MAAE,CAAC,GAC9C,CAAC,CAAC;IACR,CAAC;EACH;EAEQL,IAAIA,CAACH,OAA2B,EAA6B;IACnE,OAAO,IAAIF,6BAA6B,CAAC;MACvC,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMc,kBAAmD,GAAGA,CAAA,KACjE,IAAIhB,6BAA6B,CAAC,CAAC;AAAAiB,OAAA,CAAAD,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.SearchOptionsBuilder = void 0;
5
+ /**
6
+ * WixData search options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataSearchOptionsBuilderImpl {
11
+ constructor(options = {}) {
12
+ this.options = options;
13
+ }
14
+ withLanguage(value) {
15
+ return this.copy({
16
+ language: value
17
+ });
18
+ }
19
+ withIncludeReferences(value) {
20
+ return this.copy({
21
+ includeReferences: value.map(includeReference => ({
22
+ ...includeReference
23
+ }))
24
+ });
25
+ }
26
+ build() {
27
+ return {
28
+ ...this.options,
29
+ ...(this.options.includeReferences ? {
30
+ includeReferences: this.options.includeReferences.map(includeReference => ({
31
+ ...includeReference
32
+ }))
33
+ } : {})
34
+ };
35
+ }
36
+ copy(options) {
37
+ return new WixDataSearchOptionsBuilderImpl({
38
+ ...this.options,
39
+ ...options
40
+ });
41
+ }
42
+ }
43
+
44
+ /**
45
+ * Creates a new WixData search options builder.
46
+ * @internal
47
+ */
48
+ const SearchOptionsBuilder = () => new WixDataSearchOptionsBuilderImpl();
49
+ exports.SearchOptionsBuilder = SearchOptionsBuilder;
50
+ //# sourceMappingURL=WixDataSearchOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataSearchOptionsBuilderImpl","constructor","options","withLanguage","value","copy","language","withIncludeReferences","includeReferences","map","includeReference","build","SearchOptionsBuilder","exports"],"sources":["../../../src/api/WixDataSearchOptionsBuilder.ts"],"sourcesContent":["import type { WixDataSearchOptions } from './types'\n\n/**\n * WixData search options builder.\n * @internal\n */\nexport interface WixDataSearchOptionsBuilder {\n withLanguage(value: string): WixDataSearchOptionsBuilder\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataSearchOptionsBuilder\n build(): WixDataSearchOptions\n}\n\nclass WixDataSearchOptionsBuilderImpl implements WixDataSearchOptionsBuilder {\n constructor(private readonly options: WixDataSearchOptions = {}) {}\n\n withLanguage(value: string): WixDataSearchOptionsBuilder {\n return this.copy({ language: value })\n }\n\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataSearchOptionsBuilder {\n return this.copy({\n includeReferences: value.map((includeReference) => ({\n ...includeReference,\n })),\n })\n }\n\n build(): WixDataSearchOptions {\n return {\n ...this.options,\n ...(this.options.includeReferences\n ? {\n includeReferences: this.options.includeReferences.map(\n (includeReference) => ({ ...includeReference })\n ),\n }\n : {}),\n }\n }\n\n private copy(options: WixDataSearchOptions): WixDataSearchOptionsBuilder {\n return new WixDataSearchOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData search options builder.\n * @internal\n */\nexport const SearchOptionsBuilder: () => WixDataSearchOptionsBuilder = () =>\n new WixDataSearchOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AASA,MAAMA,+BAA+B,CAAwC;EAC3EC,WAAWA,CAAkBC,OAA6B,GAAG,CAAC,CAAC,EAAE;IAAA,KAApCA,OAA6B,GAA7BA,OAA6B;EAAQ;EAElEC,YAAYA,CAACC,KAAa,EAA+B;IACvD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,QAAQ,EAAEF;IAAM,CAAC,CAAC;EACvC;EAEAG,qBAAqBA,CACnBH,KAA0C,EACb;IAC7B,OAAO,IAAI,CAACC,IAAI,CAAC;MACfG,iBAAiB,EAAEJ,KAAK,CAACK,GAAG,CAAEC,gBAAgB,KAAM;QAClD,GAAGA;MACL,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ;EAEAC,KAAKA,CAAA,EAAyB;IAC5B,OAAO;MACL,GAAG,IAAI,CAACT,OAAO;MACf,IAAI,IAAI,CAACA,OAAO,CAACM,iBAAiB,GAC9B;QACEA,iBAAiB,EAAE,IAAI,CAACN,OAAO,CAACM,iBAAiB,CAACC,GAAG,CAClDC,gBAAgB,KAAM;UAAE,GAAGA;QAAiB,CAAC,CAChD;MACF,CAAC,GACD,CAAC,CAAC;IACR,CAAC;EACH;EAEQL,IAAIA,CAACH,OAA6B,EAA+B;IACvE,OAAO,IAAIF,+BAA+B,CAAC;MACzC,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMU,oBAAuD,GAAGA,CAAA,KACrE,IAAIZ,+BAA+B,CAAC,CAAC;AAAAa,OAAA,CAAAD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.UpdateOptionsBuilder = void 0;
5
+ /**
6
+ * WixData update options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataUpdateOptionsBuilderImpl {
11
+ constructor(options = {}) {
12
+ this.options = options;
13
+ }
14
+ withSuppressHooks(value) {
15
+ return this.copy({
16
+ suppressHooks: value
17
+ });
18
+ }
19
+ withShowDrafts(value) {
20
+ return this.copy({
21
+ showDrafts: value
22
+ });
23
+ }
24
+ withAppOptions(value) {
25
+ return this.copy({
26
+ appOptions: {
27
+ ...value
28
+ }
29
+ });
30
+ }
31
+ withIncludeReferences(value) {
32
+ return this.copy({
33
+ includeReferences: value
34
+ });
35
+ }
36
+ withSaveReferences(value) {
37
+ return this.copy({
38
+ saveReferences: value
39
+ });
40
+ }
41
+ withCondition(value) {
42
+ return this.copy({
43
+ condition: value.filter
44
+ });
45
+ }
46
+ build() {
47
+ return {
48
+ ...this.options,
49
+ ...(this.options.appOptions ? {
50
+ appOptions: {
51
+ ...this.options.appOptions
52
+ }
53
+ } : {})
54
+ };
55
+ }
56
+ copy(options) {
57
+ return new WixDataUpdateOptionsBuilderImpl({
58
+ ...this.options,
59
+ ...options
60
+ });
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Creates a new WixData update options builder.
66
+ * @internal
67
+ */
68
+ const UpdateOptionsBuilder = () => new WixDataUpdateOptionsBuilderImpl();
69
+ exports.UpdateOptionsBuilder = UpdateOptionsBuilder;
70
+ //# sourceMappingURL=WixDataUpdateOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataUpdateOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withIncludeReferences","includeReferences","withSaveReferences","saveReferences","withCondition","condition","filter","build","UpdateOptionsBuilder","exports"],"sources":["../../../src/api/WixDataUpdateOptionsBuilder.ts"],"sourcesContent":["import type { FilterExpression } from '@wix/sdk-types'\nimport type {\n WixDataItem,\n WixDataQuerySpec,\n WixDataUpdateOptions,\n} from './types'\n\n/**\n * WixData update options builder.\n * @internal\n */\nexport interface WixDataUpdateOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataUpdateOptionsBuilder\n withShowDrafts(value: boolean): WixDataUpdateOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataUpdateOptionsBuilder\n withIncludeReferences(value: boolean): WixDataUpdateOptionsBuilder\n withSaveReferences(value: boolean): WixDataUpdateOptionsBuilder\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataUpdateOptionsBuilder\n build(): WixDataUpdateOptions\n}\n\nclass WixDataUpdateOptionsBuilderImpl implements WixDataUpdateOptionsBuilder {\n constructor(private readonly options: WixDataUpdateOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataUpdateOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataUpdateOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataUpdateOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withIncludeReferences(value: boolean): WixDataUpdateOptionsBuilder {\n return this.copy({ includeReferences: value })\n }\n\n withSaveReferences(value: boolean): WixDataUpdateOptionsBuilder {\n return this.copy({ saveReferences: value })\n }\n\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataUpdateOptionsBuilder {\n return this.copy({ condition: value.filter })\n }\n\n build(): WixDataUpdateOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n }\n }\n\n private copy(options: WixDataUpdateOptions): WixDataUpdateOptionsBuilder {\n return new WixDataUpdateOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData update options builder.\n * @internal\n */\nexport const UpdateOptionsBuilder: () => WixDataUpdateOptionsBuilder = () =>\n new WixDataUpdateOptionsBuilderImpl()\n"],"mappings":";;;;AAOA;AACA;AACA;AACA;;AAaA,MAAMA,+BAA+B,CAAwC;EAC3EC,WAAWA,CAAkBC,OAA6B,GAAG,CAAC,CAAC,EAAE;IAAA,KAApCA,OAA6B,GAA7BA,OAA6B;EAAQ;EAElEC,iBAAiBA,CAACC,KAAc,EAA+B;IAC7D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,aAAa,EAAEF;IAAM,CAAC,CAAC;EAC5C;EAEAG,cAAcA,CAACH,KAAc,EAA+B;IAC1D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEG,UAAU,EAAEJ;IAAM,CAAC,CAAC;EACzC;EAEAK,cAAcA,CAACL,KAA0B,EAA+B;IACtE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEK,UAAU,EAAE;QAAE,GAAGN;MAAM;IAAE,CAAC,CAAC;EAChD;EAEAO,qBAAqBA,CAACP,KAAc,EAA+B;IACjE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEO,iBAAiB,EAAER;IAAM,CAAC,CAAC;EAChD;EAEAS,kBAAkBA,CAACT,KAAc,EAA+B;IAC9D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAES,cAAc,EAAEV;IAAM,CAAC,CAAC;EAC7C;EAEAW,aAAaA,CACXX,KAAsD,EACzB;IAC7B,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEW,SAAS,EAAEZ,KAAK,CAACa;IAAO,CAAC,CAAC;EAC/C;EAEAC,KAAKA,CAAA,EAAyB;IAC5B,OAAO;MACL,GAAG,IAAI,CAAChB,OAAO;MACf,IAAI,IAAI,CAACA,OAAO,CAACQ,UAAU,GACvB;QAAEA,UAAU,EAAE;UAAE,GAAG,IAAI,CAACR,OAAO,CAACQ;QAAW;MAAE,CAAC,GAC9C,CAAC,CAAC;IACR,CAAC;EACH;EAEQL,IAAIA,CAACH,OAA6B,EAA+B;IACvE,OAAO,IAAIF,+BAA+B,CAAC;MACzC,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMiB,oBAAuD,GAAGA,CAAA,KACrE,IAAInB,+BAA+B,CAAC,CAAC;AAAAoB,OAAA,CAAAD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataSearchResponse = exports.WixDataSearchRequest = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryResponse = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryReferencedItemsResponse = exports.WixDataQueryReferencedItemsOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = exports.WixDataPatchByFilter = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilterInput = exports.WixDataFilter = exports.WixDataFieldModificationsBuilder = exports.WixDataDistinctResponse = exports.WixDataDistinctOptions = exports.WixDataDirectSearchOptions = exports.WixDataDirectQueryOptions = exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkSaveOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkInsertOptions = exports.WixDataBulkError = exports.WixDataAsyncJobStatusValue = exports.WixDataAsyncJobStatus = exports.WixDataAsyncJob = exports.WixDataAsyncByFilterOptions = exports.WixDataApi = exports.WixDataAggregateResponse = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.UnwindStage = exports.UnresolvedReference = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.SetField = exports.SearchParams = exports.SearchBuilder = exports.RemoveFromArray = exports.RemoveField = exports.ReferencedResult = exports.QueryValidator = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.PagingMetadata = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LimitStage = exports.LengthExpression = exports.IncrementField = exports.GroupStage = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldModificationsBuilder = exports.FieldModification = exports.FieldExpression = exports.DivideExpression = exports.ConcatExpression = exports.CeilExpression = exports.AppendToArray = exports.AddExpression = exports.AbsExpression = void 0;
5
- exports.stages = void 0;
4
+ exports.WixDataPatchByFilter = exports.WixDataPatch = exports.WixDataOptions = exports.WixDataItem = exports.WixDataInsertOptions = exports.WixDataGetOptions = exports.WixDataFilterInput = exports.WixDataFilter = exports.WixDataFieldModificationsBuilder = exports.WixDataDistinctResponse = exports.WixDataDistinctOptions = exports.WixDataCountOptions = exports.WixDataBulkUpdateOptions = exports.WixDataBulkSaveOptions = exports.WixDataBulkResult = exports.WixDataBulkRemoveOptions = exports.WixDataBulkPatchOptions = exports.WixDataBulkPatch = exports.WixDataBulkInsertOptions = exports.WixDataBulkError = exports.WixDataAsyncRemoveByFilterResponse = exports.WixDataAsyncRemoveByFilterOptions = exports.WixDataAsyncPatchByFilterResponse = exports.WixDataAsyncPatchByFilterOptions = exports.WixDataAsyncJobStatusValue = exports.WixDataAsyncJobStatus = exports.WixDataAsyncJob = exports.WixDataAsyncByFilterOptions = exports.WixDataApi = exports.WixDataAggregateResponse = exports.WixDataAggregatePipelineStages = exports.WixDataAggregatePipelineExpressions = exports.WixDataAggregateOptions = exports.WixDataAggregate = exports.WithIncludeFieldGroupsOption = exports.UpdateOptionsBuilder = exports.UnwindStage = exports.UnresolvedReference = exports.ToUpperExpression = exports.ToLowerExpression = exports.TextExpression = exports.SumExpression = exports.SubtractExpression = exports.SubstringExpression = exports.StringifyExpression = exports.SortStage = exports.Sort = exports.SkipStage = exports.SetField = exports.SearchParams = exports.SearchOptionsBuilder = exports.SearchBuilder = exports.SaveOptionsBuilder = exports.RemoveOptionsBuilder = exports.RemoveFromArray = exports.RemoveField = exports.ReferencedResult = exports.QueryValidator = exports.QueryReferencedItemsOptionsBuilder = exports.QueryOptionsBuilder = exports.QueryBuilder = exports.QueryBase = exports.ProjectStage = exports.PipelineStage = exports.PipelineBuilder = exports.PatchOptionsBuilder = exports.PagingMetadata = exports.ObjectToArrayStage = exports.NumericExpression = exports.MultiplyExpression = exports.ModExpression = exports.LimitStage = exports.LengthExpression = exports.IsReferencedOptionsBuilder = exports.InsertOptionsBuilder = exports.IncrementField = exports.GroupStage = exports.GetOptionsBuilder = exports.FloorExpression = exports.FilterStage = exports.Filter = exports.FieldModificationsBuilder = exports.FieldModification = exports.FieldExpression = exports.DivideExpression = exports.DistinctOptionsBuilder = exports.CountOptionsBuilder = exports.ConcatExpression = exports.CeilExpression = exports.BulkUpdateOptionsBuilder = exports.BulkSaveOptionsBuilder = exports.BulkRemoveOptionsBuilder = exports.BulkPatchOptionsBuilder = exports.BulkInsertOptionsBuilder = exports.AsyncRemoveByFilterOptionsBuilder = exports.AsyncPatchByFilterOptionsBuilder = exports.AppendToArray = exports.AggregateOptionsBuilder = exports.AddExpression = exports.AbsExpression = void 0;
5
+ exports.stages = exports.pipelineBuilder = exports.expressions = exports.WixDataUpdateOptions = exports.WixDataSearchResponse = exports.WixDataSearchRequest = exports.WixDataSearchOptions = exports.WixDataSearch = exports.WixDataSaveOptions = exports.WixDataResult = exports.WixDataRemoveOptions = exports.WixDataReference = exports.WixDataReadWithProjectionOptions = exports.WixDataReadOptions = exports.WixDataQuerySpec = exports.WixDataQueryResponse = exports.WixDataQueryRequest = exports.WixDataQueryReferencedOptions = exports.WixDataQueryReferencedItemsResponse = exports.WixDataQueryReferencedItemsOptions = exports.WixDataQueryOptions = exports.WixDataQueryBuilder = exports.WixDataQuery = exports.WixDataPatchOptions = void 0;
6
6
  var _WixDataQuery = require("./WixDataQuery");
7
7
  exports.WixDataQuery = _WixDataQuery.WixDataQuery;
8
8
  var _WixDataSearch = require("./WixDataSearch");
@@ -57,7 +57,6 @@ exports.WithIncludeFieldGroupsOption = _types.WithIncludeFieldGroupsOption;
57
57
  exports.WixDataGetOptions = _types.WixDataGetOptions;
58
58
  exports.WixDataUpdateOptions = _types.WixDataUpdateOptions;
59
59
  exports.WixDataQueryOptions = _types.WixDataQueryOptions;
60
- exports.WixDataDirectQueryOptions = _types.WixDataDirectQueryOptions;
61
60
  exports.WixDataQueryRequest = _types.WixDataQueryRequest;
62
61
  exports.WixDataQuerySpec = _types.WixDataQuerySpec;
63
62
  exports.WixDataItem = _types.WixDataItem;
@@ -65,7 +64,11 @@ exports.WixDataReference = _types.WixDataReference;
65
64
  exports.WixDataBulkError = _types.WixDataBulkError;
66
65
  exports.WixDataSaveOptions = _types.WixDataSaveOptions;
67
66
  exports.WixDataAsyncByFilterOptions = _types.WixDataAsyncByFilterOptions;
67
+ exports.WixDataAsyncRemoveByFilterOptions = _types.WixDataAsyncRemoveByFilterOptions;
68
+ exports.WixDataAsyncPatchByFilterOptions = _types.WixDataAsyncPatchByFilterOptions;
68
69
  exports.WixDataAsyncJob = _types.WixDataAsyncJob;
70
+ exports.WixDataAsyncRemoveByFilterResponse = _types.WixDataAsyncRemoveByFilterResponse;
71
+ exports.WixDataAsyncPatchByFilterResponse = _types.WixDataAsyncPatchByFilterResponse;
69
72
  exports.WixDataAsyncJobStatus = _types.WixDataAsyncJobStatus;
70
73
  exports.WixDataAsyncJobStatusValue = _types.WixDataAsyncJobStatusValue;
71
74
  exports.WixDataFilterInput = _types.WixDataFilterInput;
@@ -82,7 +85,7 @@ exports.WixDataRemoveOptions = _types.WixDataRemoveOptions;
82
85
  exports.WixDataDistinctOptions = _types.WixDataDistinctOptions;
83
86
  exports.WixDataCountOptions = _types.WixDataCountOptions;
84
87
  exports.WixDataSearchRequest = _types.WixDataSearchRequest;
85
- exports.WixDataDirectSearchOptions = _types.WixDataDirectSearchOptions;
88
+ exports.WixDataSearchOptions = _types.WixDataSearchOptions;
86
89
  var _stages = require("./stages/stages");
87
90
  exports.stages = _stages.stages;
88
91
  exports.PipelineStage = _stages.PipelineStage;
@@ -114,6 +117,46 @@ exports.WixDataQueryBuilder = _WixDataQueryBuilder.WixDataQueryBuilder;
114
117
  var _WixDataSearchBuilder = require("./WixDataSearchBuilder");
115
118
  exports.SearchBuilder = _WixDataSearchBuilder.SearchBuilder;
116
119
  exports.SearchParams = _WixDataSearchBuilder.SearchParams;
120
+ var _WixDataInsertOptionsBuilder = require("./WixDataInsertOptionsBuilder");
121
+ exports.InsertOptionsBuilder = _WixDataInsertOptionsBuilder.InsertOptionsBuilder;
122
+ var _WixDataSaveOptionsBuilder = require("./WixDataSaveOptionsBuilder");
123
+ exports.SaveOptionsBuilder = _WixDataSaveOptionsBuilder.SaveOptionsBuilder;
124
+ var _WixDataGetOptionsBuilder = require("./WixDataGetOptionsBuilder");
125
+ exports.GetOptionsBuilder = _WixDataGetOptionsBuilder.GetOptionsBuilder;
126
+ var _WixDataQueryOptionsBuilder = require("./WixDataQueryOptionsBuilder");
127
+ exports.QueryOptionsBuilder = _WixDataQueryOptionsBuilder.QueryOptionsBuilder;
128
+ var _WixDataQueryReferencedItemsOptionsBuilder = require("./WixDataQueryReferencedItemsOptionsBuilder");
129
+ exports.QueryReferencedItemsOptionsBuilder = _WixDataQueryReferencedItemsOptionsBuilder.QueryReferencedItemsOptionsBuilder;
130
+ var _WixDataAggregateOptionsBuilder = require("./WixDataAggregateOptionsBuilder");
131
+ exports.AggregateOptionsBuilder = _WixDataAggregateOptionsBuilder.AggregateOptionsBuilder;
132
+ var _WixDataDistinctOptionsBuilder = require("./WixDataDistinctOptionsBuilder");
133
+ exports.DistinctOptionsBuilder = _WixDataDistinctOptionsBuilder.DistinctOptionsBuilder;
134
+ var _WixDataCountOptionsBuilder = require("./WixDataCountOptionsBuilder");
135
+ exports.CountOptionsBuilder = _WixDataCountOptionsBuilder.CountOptionsBuilder;
136
+ var _WixDataIsReferencedOptionsBuilder = require("./WixDataIsReferencedOptionsBuilder");
137
+ exports.IsReferencedOptionsBuilder = _WixDataIsReferencedOptionsBuilder.IsReferencedOptionsBuilder;
138
+ var _WixDataSearchOptionsBuilder = require("./WixDataSearchOptionsBuilder");
139
+ exports.SearchOptionsBuilder = _WixDataSearchOptionsBuilder.SearchOptionsBuilder;
140
+ var _WixDataUpdateOptionsBuilder = require("./WixDataUpdateOptionsBuilder");
141
+ exports.UpdateOptionsBuilder = _WixDataUpdateOptionsBuilder.UpdateOptionsBuilder;
142
+ var _WixDataBulkUpdateOptionsBuilder = require("./WixDataBulkUpdateOptionsBuilder");
143
+ exports.BulkUpdateOptionsBuilder = _WixDataBulkUpdateOptionsBuilder.BulkUpdateOptionsBuilder;
144
+ var _WixDataBulkInsertOptionsBuilder = require("./WixDataBulkInsertOptionsBuilder");
145
+ exports.BulkInsertOptionsBuilder = _WixDataBulkInsertOptionsBuilder.BulkInsertOptionsBuilder;
146
+ var _WixDataBulkSaveOptionsBuilder = require("./WixDataBulkSaveOptionsBuilder");
147
+ exports.BulkSaveOptionsBuilder = _WixDataBulkSaveOptionsBuilder.BulkSaveOptionsBuilder;
148
+ var _WixDataBulkRemoveOptionsBuilder = require("./WixDataBulkRemoveOptionsBuilder");
149
+ exports.BulkRemoveOptionsBuilder = _WixDataBulkRemoveOptionsBuilder.BulkRemoveOptionsBuilder;
150
+ var _WixDataPatchOptionsBuilder = require("./WixDataPatchOptionsBuilder");
151
+ exports.PatchOptionsBuilder = _WixDataPatchOptionsBuilder.PatchOptionsBuilder;
152
+ var _WixDataBulkPatchOptionsBuilder = require("./WixDataBulkPatchOptionsBuilder");
153
+ exports.BulkPatchOptionsBuilder = _WixDataBulkPatchOptionsBuilder.BulkPatchOptionsBuilder;
154
+ var _WixDataRemoveOptionsBuilder = require("./WixDataRemoveOptionsBuilder");
155
+ exports.RemoveOptionsBuilder = _WixDataRemoveOptionsBuilder.RemoveOptionsBuilder;
156
+ var _WixDataAsyncRemoveByFilterOptionsBuilder = require("./WixDataAsyncRemoveByFilterOptionsBuilder");
157
+ exports.AsyncRemoveByFilterOptionsBuilder = _WixDataAsyncRemoveByFilterOptionsBuilder.AsyncRemoveByFilterOptionsBuilder;
158
+ var _WixDataAsyncPatchByFilterOptionsBuilder = require("./WixDataAsyncPatchByFilterOptionsBuilder");
159
+ exports.AsyncPatchByFilterOptionsBuilder = _WixDataAsyncPatchByFilterOptionsBuilder.AsyncPatchByFilterOptionsBuilder;
117
160
  var _expressions = require("./expressions/expressions");
118
161
  exports.expressions = _expressions.expressions;
119
162
  exports.WixDataAggregatePipelineExpressions = _expressions.WixDataAggregatePipelineExpressions;
@@ -1 +1 @@
1
- {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_WixDataQueryResponse","WixDataQueryResponse","_WixDataSearchResponse","WixDataSearchResponse","_WixDataAggregateResponse","WixDataAggregateResponse","_WixDataDistinctResponse","WixDataDistinctResponse","_WixDataQueryReferencedItemsResponse","WixDataQueryReferencedItemsResponse","ReferencedResult","UnresolvedReference","_PagingMetadata","PagingMetadata","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","WixDataPatchByFilter","WixDataPatchOptions","WixDataBulkPatchOptions","_FieldModification","FieldModification","SetField","RemoveField","IncrementField","AppendToArray","RemoveFromArray","_WixDataFieldModificationsBuilder","FieldModificationsBuilder","WixDataFieldModificationsBuilder","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataDirectQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataAsyncByFilterOptions","WixDataAsyncJob","WixDataAsyncJobStatus","WixDataAsyncJobStatusValue","WixDataFilterInput","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataBulkInsertOptions","WixDataBulkSaveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataQueryReferencedItemsOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataDirectSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_WixDataSearchBuilder","SearchBuilder","SearchParams","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { WixDataQueryResponse } from './WixDataQueryResponse'\nexport { WixDataSearchResponse } from './WixDataSearchResponse'\nexport { WixDataAggregateResponse } from './WixDataAggregateResponse'\nexport { WixDataDistinctResponse } from './WixDataDistinctResponse'\nexport {\n WixDataQueryReferencedItemsResponse,\n ReferencedResult,\n UnresolvedReference,\n} from './WixDataQueryReferencedItemsResponse'\nexport { PagingMetadata } from './PagingMetadata'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport {\n WixDataPatch,\n WixDataBulkPatch,\n WixDataPatchByFilter,\n WixDataPatchOptions,\n WixDataBulkPatchOptions,\n} from './WixDataPatch'\nexport {\n FieldModification,\n SetField,\n RemoveField,\n IncrementField,\n AppendToArray,\n RemoveFromArray,\n} from './FieldModification'\nexport {\n FieldModificationsBuilder,\n WixDataFieldModificationsBuilder,\n} from './WixDataFieldModificationsBuilder'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataDirectQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataAsyncByFilterOptions,\n WixDataAsyncJob,\n WixDataAsyncJobStatus,\n WixDataAsyncJobStatusValue,\n WixDataFilterInput,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataBulkInsertOptions,\n WixDataBulkSaveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataQueryReferencedItemsOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataDirectSearchOptions,\n} from './types'\nexport type { WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport { SearchBuilder, SearchParams } from './WixDataSearchBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;AAA+CC,OAAA,CAAAG,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,WAAA,GAAAL,OAAA;AAAyCC,OAAA,CAAAK,UAAA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A4H,aAAA,GAAAV,WAAA,CAAAU,aAAA;AAAA5H,OAAA,CAAA6H,eAAA,GAAAX,WAAA,CAAAW,eAAA;AAAA7H,OAAA,CAAA8H,cAAA,GAAAZ,WAAA,CAAAY,cAAA;AAAA9H,OAAA,CAAA+H,gBAAA,GAAAb,WAAA,CAAAa,gBAAA;AAAA/H,OAAA,CAAAgI,mBAAA,GAAAd,WAAA,CAAAc,mBAAA;AAAAhI,OAAA,CAAAiI,iBAAA,GAAAf,WAAA,CAAAe,iBAAA;AAAAjI,OAAA,CAAAkI,iBAAA,GAAAhB,WAAA,CAAAgB,iBAAA;AAAAlI,OAAA,CAAAmI,mBAAA,GAAAjB,WAAA,CAAAiB,mBAAA;AAAAnI,OAAA,CAAAoI,gBAAA,GAAAlB,WAAA,CAAAkB,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_WixDataQuery","require","exports","WixDataQuery","_WixDataSearch","WixDataSearch","_WixDataApi","WixDataApi","_WixDataResult","WixDataResult","_WixDataQueryResponse","WixDataQueryResponse","_WixDataSearchResponse","WixDataSearchResponse","_WixDataAggregateResponse","WixDataAggregateResponse","_WixDataDistinctResponse","WixDataDistinctResponse","_WixDataQueryReferencedItemsResponse","WixDataQueryReferencedItemsResponse","ReferencedResult","UnresolvedReference","_PagingMetadata","PagingMetadata","_QueryValidator","QueryValidator","_WixDataAggregate","WixDataAggregate","_QueryBase","QueryBase","_WixDataPatch","WixDataPatch","WixDataBulkPatch","WixDataPatchByFilter","WixDataPatchOptions","WixDataBulkPatchOptions","_FieldModification","FieldModification","SetField","RemoveField","IncrementField","AppendToArray","RemoveFromArray","_WixDataFieldModificationsBuilder","FieldModificationsBuilder","WixDataFieldModificationsBuilder","_WixDataFilter","WixDataFilter","_types","WixDataOptions","WixDataReadOptions","WixDataReadWithProjectionOptions","WithIncludeFieldGroupsOption","WixDataGetOptions","WixDataUpdateOptions","WixDataQueryOptions","WixDataQueryRequest","WixDataQuerySpec","WixDataItem","WixDataReference","WixDataBulkError","WixDataSaveOptions","WixDataAsyncByFilterOptions","WixDataAsyncRemoveByFilterOptions","WixDataAsyncPatchByFilterOptions","WixDataAsyncJob","WixDataAsyncRemoveByFilterResponse","WixDataAsyncPatchByFilterResponse","WixDataAsyncJobStatus","WixDataAsyncJobStatusValue","WixDataFilterInput","WixDataBulkUpdateOptions","WixDataBulkRemoveOptions","WixDataBulkInsertOptions","WixDataBulkSaveOptions","WixDataInsertOptions","WixDataBulkResult","WixDataQueryReferencedOptions","WixDataQueryReferencedItemsOptions","WixDataAggregateOptions","WixDataRemoveOptions","WixDataDistinctOptions","WixDataCountOptions","WixDataSearchRequest","WixDataSearchOptions","_stages","stages","PipelineStage","WixDataAggregatePipelineStages","_FilterStage","FilterStage","_ProjectStage","ProjectStage","_GroupStage","GroupStage","_UnwindStage","UnwindStage","_SortStage","SortStage","_LimitStage","LimitStage","_SkipStage","SkipStage","_ObjectToArrayStage","ObjectToArrayStage","_PipelineBuilder","PipelineBuilder","pipelineBuilder","_WixDataQueryBuilder","QueryBuilder","Sort","Filter","WixDataQueryBuilder","_WixDataSearchBuilder","SearchBuilder","SearchParams","_WixDataInsertOptionsBuilder","InsertOptionsBuilder","_WixDataSaveOptionsBuilder","SaveOptionsBuilder","_WixDataGetOptionsBuilder","GetOptionsBuilder","_WixDataQueryOptionsBuilder","QueryOptionsBuilder","_WixDataQueryReferencedItemsOptionsBuilder","QueryReferencedItemsOptionsBuilder","_WixDataAggregateOptionsBuilder","AggregateOptionsBuilder","_WixDataDistinctOptionsBuilder","DistinctOptionsBuilder","_WixDataCountOptionsBuilder","CountOptionsBuilder","_WixDataIsReferencedOptionsBuilder","IsReferencedOptionsBuilder","_WixDataSearchOptionsBuilder","SearchOptionsBuilder","_WixDataUpdateOptionsBuilder","UpdateOptionsBuilder","_WixDataBulkUpdateOptionsBuilder","BulkUpdateOptionsBuilder","_WixDataBulkInsertOptionsBuilder","BulkInsertOptionsBuilder","_WixDataBulkSaveOptionsBuilder","BulkSaveOptionsBuilder","_WixDataBulkRemoveOptionsBuilder","BulkRemoveOptionsBuilder","_WixDataPatchOptionsBuilder","PatchOptionsBuilder","_WixDataBulkPatchOptionsBuilder","BulkPatchOptionsBuilder","_WixDataRemoveOptionsBuilder","RemoveOptionsBuilder","_WixDataAsyncRemoveByFilterOptionsBuilder","AsyncRemoveByFilterOptionsBuilder","_WixDataAsyncPatchByFilterOptionsBuilder","AsyncPatchByFilterOptionsBuilder","_expressions","expressions","WixDataAggregatePipelineExpressions","_Expression","FieldExpression","TextExpression","NumericExpression","AddExpression","SubtractExpression","MultiplyExpression","DivideExpression","SumExpression","AbsExpression","ModExpression","FloorExpression","CeilExpression","ConcatExpression","StringifyExpression","ToLowerExpression","ToUpperExpression","SubstringExpression","LengthExpression"],"sources":["../../../src/api/index.ts"],"sourcesContent":["export { WixDataQuery } from './WixDataQuery'\nexport { WixDataSearch } from './WixDataSearch'\nexport { WixDataApi } from './WixDataApi'\nexport { WixDataResult } from './WixDataResult'\nexport { WixDataQueryResponse } from './WixDataQueryResponse'\nexport { WixDataSearchResponse } from './WixDataSearchResponse'\nexport { WixDataAggregateResponse } from './WixDataAggregateResponse'\nexport { WixDataDistinctResponse } from './WixDataDistinctResponse'\nexport {\n WixDataQueryReferencedItemsResponse,\n ReferencedResult,\n UnresolvedReference,\n} from './WixDataQueryReferencedItemsResponse'\nexport { PagingMetadata } from './PagingMetadata'\nexport { QueryValidator } from './QueryValidator'\nexport { WixDataAggregate } from './WixDataAggregate'\nexport { QueryBase } from './QueryBase'\nexport {\n WixDataPatch,\n WixDataBulkPatch,\n WixDataPatchByFilter,\n WixDataPatchOptions,\n WixDataBulkPatchOptions,\n} from './WixDataPatch'\nexport {\n FieldModification,\n SetField,\n RemoveField,\n IncrementField,\n AppendToArray,\n RemoveFromArray,\n} from './FieldModification'\nexport {\n FieldModificationsBuilder,\n WixDataFieldModificationsBuilder,\n} from './WixDataFieldModificationsBuilder'\nexport { WixDataFilter } from './WixDataFilter'\nexport {\n WixDataOptions,\n WixDataReadOptions,\n WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption,\n WixDataGetOptions,\n WixDataUpdateOptions,\n WixDataQueryOptions,\n WixDataQueryRequest,\n WixDataQuerySpec,\n WixDataItem,\n WixDataReference,\n WixDataBulkError,\n WixDataSaveOptions,\n WixDataAsyncByFilterOptions,\n WixDataAsyncRemoveByFilterOptions,\n WixDataAsyncPatchByFilterOptions,\n WixDataAsyncJob,\n WixDataAsyncRemoveByFilterResponse,\n WixDataAsyncPatchByFilterResponse,\n WixDataAsyncJobStatus,\n WixDataAsyncJobStatusValue,\n WixDataFilterInput,\n WixDataBulkUpdateOptions,\n WixDataBulkRemoveOptions,\n WixDataBulkInsertOptions,\n WixDataBulkSaveOptions,\n WixDataInsertOptions,\n WixDataBulkResult,\n WixDataQueryReferencedOptions,\n WixDataQueryReferencedItemsOptions,\n WixDataAggregateOptions,\n WixDataRemoveOptions,\n WixDataDistinctOptions,\n WixDataCountOptions,\n WixDataSearchRequest,\n WixDataSearchOptions,\n} from './types'\nexport type { WixDataIsReferencedOptions, WixDataItemOrId } from './types'\nexport {\n stages,\n PipelineStage,\n WixDataAggregatePipelineStages,\n} from './stages/stages'\nexport { FilterStage } from './stages/FilterStage'\nexport { ProjectStage } from './stages/ProjectStage'\nexport { GroupStage } from './stages/GroupStage'\nexport { UnwindStage } from './stages/UnwindStage'\nexport { SortStage } from './stages/SortStage'\nexport { LimitStage } from './stages/LimitStage'\nexport { SkipStage } from './stages/SkipStage'\nexport { ObjectToArrayStage } from './stages/ObjectToArrayStage'\nexport { PipelineBuilder, pipelineBuilder } from './PipelineBuilder'\nexport {\n QueryBuilder,\n Sort,\n Filter,\n WixDataQueryBuilder,\n} from './WixDataQueryBuilder'\nexport { SearchBuilder, SearchParams } from './WixDataSearchBuilder'\nexport { InsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport type { WixDataInsertOptionsBuilder } from './WixDataInsertOptionsBuilder'\nexport { SaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport type { WixDataSaveOptionsBuilder } from './WixDataSaveOptionsBuilder'\nexport { GetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport type { WixDataGetOptionsBuilder } from './WixDataGetOptionsBuilder'\nexport { QueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport type { WixDataQueryOptionsBuilder } from './WixDataQueryOptionsBuilder'\nexport { QueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport type { WixDataQueryReferencedItemsOptionsBuilder } from './WixDataQueryReferencedItemsOptionsBuilder'\nexport { AggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport type { WixDataAggregateOptionsBuilder } from './WixDataAggregateOptionsBuilder'\nexport { DistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport type { WixDataDistinctOptionsBuilder } from './WixDataDistinctOptionsBuilder'\nexport { CountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport type { WixDataCountOptionsBuilder } from './WixDataCountOptionsBuilder'\nexport { IsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport type { WixDataIsReferencedOptionsBuilder } from './WixDataIsReferencedOptionsBuilder'\nexport { SearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport type { WixDataSearchOptionsBuilder } from './WixDataSearchOptionsBuilder'\nexport { UpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport type { WixDataUpdateOptionsBuilder } from './WixDataUpdateOptionsBuilder'\nexport { BulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport type { WixDataBulkUpdateOptionsBuilder } from './WixDataBulkUpdateOptionsBuilder'\nexport { BulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport type { WixDataBulkInsertOptionsBuilder } from './WixDataBulkInsertOptionsBuilder'\nexport { BulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport type { WixDataBulkSaveOptionsBuilder } from './WixDataBulkSaveOptionsBuilder'\nexport { BulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport type { WixDataBulkRemoveOptionsBuilder } from './WixDataBulkRemoveOptionsBuilder'\nexport { PatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport type { WixDataPatchOptionsBuilder } from './WixDataPatchOptionsBuilder'\nexport { BulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport type { WixDataBulkPatchOptionsBuilder } from './WixDataBulkPatchOptionsBuilder'\nexport { RemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport type { WixDataRemoveOptionsBuilder } from './WixDataRemoveOptionsBuilder'\nexport { AsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport type { WixDataAsyncRemoveByFilterOptionsBuilder } from './WixDataAsyncRemoveByFilterOptionsBuilder'\nexport { AsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport type { WixDataAsyncPatchByFilterOptionsBuilder } from './WixDataAsyncPatchByFilterOptionsBuilder'\nexport {\n expressions,\n WixDataAggregatePipelineExpressions,\n} from './expressions/expressions'\nexport {\n FieldExpression,\n TextExpression,\n NumericExpression,\n AddExpression,\n SubtractExpression,\n MultiplyExpression,\n DivideExpression,\n SumExpression,\n AbsExpression,\n ModExpression,\n FloorExpression,\n CeilExpression,\n ConcatExpression,\n StringifyExpression,\n ToLowerExpression,\n ToUpperExpression,\n SubstringExpression,\n LengthExpression,\n} from './expressions/Expression'\n"],"mappings":";;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AAA6CC,OAAA,CAAAC,YAAA,GAAAH,aAAA,CAAAG,YAAA;AAC7C,IAAAC,cAAA,GAAAH,OAAA;AAA+CC,OAAA,CAAAG,aAAA,GAAAD,cAAA,CAAAC,aAAA;AAC/C,IAAAC,WAAA,GAAAL,OAAA;AAAyCC,OAAA,CAAAK,UAAA,GAAAD,WAAA,CAAAC,U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mBAAA,GAAAjB,WAAA,CAAAiB,mBAAA;AAAA9K,OAAA,CAAA+K,gBAAA,GAAAlB,WAAA,CAAAkB,gBAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["import type { QueryRequest as SDKQueryRequest, QuerySpec } from '@wix/sdk-types'\nimport type { SortOrder } from '../types/data-item-types'\nimport { WixDataFilter } from './WixDataFilter'\n\nexport interface BaseOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n}\n\nexport interface WithAppOptions {\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n}\n\n/**\n * Options for including referenced items in results.\n */\nexport interface IncludeReferencesOptions {\n /**\n * Reference fields to resolve in the results. When specified, the referenced items\n * are included in the response for the given fields.\n *\n * Each entry identifies a reference `field` by name and an optional `limit` that caps the number\n * of referenced items returned per queried item (relevant for multi-reference fields).\n */\n includeReferences?: { field: string; limit?: number }[]\n}\n\nexport interface WixDataRemoveOptions extends WixDataOptions {\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataOptions extends BaseOptions, WithAppOptions {}\n\nexport interface WixDataReadOptions extends WixDataOptions, WithAppOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\n/**\n * Options for standalone count queries.\n * @internal\n */\nexport interface WixDataCountOptions extends WixDataReadOptions {\n filter?: Record<string, any>\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions,\n IncludeReferencesOptions {}\n\nexport interface WithIncludeFieldGroupsOption {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\nexport interface WixDataGetOptions\n extends WixDataReadWithProjectionOptions,\n WithIncludeFieldGroupsOption {}\n\nexport interface WixDataSaveOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataInsertOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkUpdateOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n /**\n * If provided, only items matching condition will be updated.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkInsertOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataBulkSaveOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataBulkRemoveOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be removed.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataAsyncByFilterOptions extends BaseOptions {}\n\nexport type WixDataFilterInput = WixDataFilter | Record<string, any>\n\nexport interface WixDataAsyncJob {\n /** Job ID for tracking the async operation. */\n jobId: string\n}\n\nexport type WixDataAsyncJobStatusValue =\n | 'UNKNOWN_STATUS'\n | 'INITIALIZED'\n | 'PROCESSING'\n | 'SUCCEEDED'\n | 'FAILED'\n\nexport interface WixDataAsyncJobStatus {\n /** Current status of the async operation. */\n status?: WixDataAsyncJobStatusValue\n /** Number of items successfully processed so far. */\n successCount?: number\n}\n\nexport interface WixDataAggregateOptions extends WixDataQueryOptions {}\n\n/**\n * Options for standalone distinct field value queries.\n * @internal\n */\nexport interface WixDataDistinctOptions extends WixDataQueryOptions {\n filter?: Record<string, any>\n order?: SortOrder\n paging?: { limit?: number; offset?: number }\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * WixData query specification.\n * Since WixData collections are dynamic, we allow any string field.\n * @internal\n */\nexport interface WixDataQuerySpec extends QuerySpec {\n wql: [\n {\n fields: string[]\n sort: 'BOTH'\n }\n ]\n paging: 'offset'\n}\n\n/**\n * Request object for direct query execution.\n * Extends the SDK's QueryRequest with WixData-specific fields.\n * Use this with `wixData.query(collectionName, queryRequest)` for one-shot queries.\n * @internal\n */\nexport interface WixDataQueryRequest\n extends Omit<SDKQueryRequest<WixDataItem, WixDataQuerySpec>, 'filter'> {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n /**\n * Cursor-based paging. Use this as an alternative to offset paging.\n *\n * Example:\n * ```js\n * { limit: 10, cursor: 'abc123' }\n * ```\n */\n cursorPaging?: {\n /** Maximum number of items to return. */\n limit?: number\n /** Cursor token pointing to a page of results. */\n cursor?: string\n }\n}\n\nexport interface WixDataQueryOptions extends WixDataReadOptions {\n /**\n * When `true`, the query results include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n}\n\n/**\n * Options for direct query execution.\n * @internal\n */\nexport interface WixDataDirectQueryOptions\n extends WixDataQueryOptions,\n IncludeReferencesOptions {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\n/**\n * Request object for direct search execution.\n * Matches the shape produced by `SearchBuilder().build()` so it can be passed directly.\n * Use this with `wixData.search(collectionName, searchRequest)` for direct search execution.\n * @internal\n */\nexport interface WixDataSearchRequest {\n /** Search parameters. */\n search?: {\n /** Search text expression. */\n expression?: string | null\n /** Whether to enable fuzzy matching. */\n fuzzy?: boolean | null\n /** Search mode: 'OR' (any term) or 'AND' (all terms). */\n mode?: 'OR' | 'AND' | null\n }\n /** Filter object. */\n filter?: Record<string, any>\n /** Sort array. */\n sort?: { fieldName: string; order?: 'ASC' | 'DESC' }[]\n /** Fields to return in results. */\n fields?: string[]\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * Options for direct search execution.\n * @internal\n */\nexport interface WixDataDirectSearchOptions\n extends WixDataReadOptions,\n IncludeReferencesOptions {}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `asc`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n skip?: number\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n limit?: number\n}\n\nexport interface WixDataQueryReferencedItemsOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `ASC`\n */\n order?: SortOrder\n\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n * @readonly\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n * @readonly\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\nexport type Comparable = string | number | Date\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * Description of the error.\n */\n message: string\n\n /**\n * Error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * Failed item (or ID in case of `bulkRemove()`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * Number of inserted items.\n */\n inserted: number\n\n /**\n * Number of updated items.\n */\n updated: number\n\n /**\n * Number of removed items.\n */\n removed: number\n\n /**\n * Number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/api/types.ts"],"sourcesContent":["import type { QueryRequest as SDKQueryRequest, QuerySpec } from '@wix/sdk-types'\nimport type { SortOrder } from '../types/data-item-types'\nimport { WixDataFilter } from './WixDataFilter'\n\nexport interface BaseOptions {\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n}\n\nexport interface WithAppOptions {\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n}\n\n/**\n * Options for including referenced items in results.\n */\nexport interface IncludeReferencesOptions {\n /**\n * Reference fields to resolve in the results. When specified, the referenced items\n * are included in the response for the given fields.\n *\n * Each entry identifies a reference `field` by name and an optional `limit` that caps the number\n * of referenced items returned per queried item (relevant for multi-reference fields).\n */\n includeReferences?: { field: string; limit?: number }[]\n}\n\nexport interface WixDataRemoveOptions extends WixDataOptions {\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilterInput\n}\n\nexport interface WixDataOptions extends BaseOptions, WithAppOptions {}\n\nexport interface WixDataReadOptions extends WixDataOptions, WithAppOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\nexport interface WixDataIsReferencedOptions {\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n}\n\n/**\n * Options for standalone count queries.\n * @internal\n */\nexport interface WixDataCountOptions {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n}\n\nexport interface WixDataReadWithProjectionOptions\n extends WixDataReadOptions,\n ProjectionOptions,\n IncludeReferencesOptions {}\n\nexport interface WithIncludeFieldGroupsOption {\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\nexport interface WixDataGetOptions\n extends ProjectionOptions,\n IncludeReferencesOptions,\n WithIncludeFieldGroupsOption {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n}\n\nexport interface WixDataSaveOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataInsertOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataUpdateOptions extends WixDataOptions {\n /**\n * If true, referenced items are included.\n * @internal\n */\n includeReferences?: boolean\n /** Whether to save references from the data item to other items in the collection. */\n saveReferences?: boolean\n /**\n * If provided, item will be updated only if condition is met.\n */\n condition?: WixDataFilterInput\n}\n\nexport interface WixDataBulkUpdateOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n /**\n * If provided, only items matching condition will be updated.\n */\n condition?: WixDataFilterInput\n}\n\nexport interface WixDataBulkInsertOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n /**\n * Whether to update existing items with the same ID.\n * @internal\n */\n overrideExisting?: boolean\n}\n\nexport interface WixDataBulkSaveOptions extends WixDataOptions {\n /** Whether to save references from the data items to other items in the collection. */\n saveReferences?: boolean\n}\n\nexport interface WixDataBulkRemoveOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be removed.\n */\n condition?: WixDataFilterInput\n}\n\nexport interface WixDataAsyncByFilterOptions extends BaseOptions {}\n\nexport interface WixDataAsyncRemoveByFilterOptions extends BaseOptions {}\n\nexport interface WixDataAsyncPatchByFilterOptions extends BaseOptions {}\n\nexport type WixDataFilterInput = WixDataFilter | Record<string, any>\n\nexport interface WixDataAsyncJob {\n /** Job ID for tracking the async operation. */\n jobId: string\n}\n\nexport interface WixDataAsyncRemoveByFilterResponse {\n /** Job ID for tracking the async operation. */\n jobId: string\n}\n\nexport interface WixDataAsyncPatchByFilterResponse {\n /** Job ID for tracking the async operation. */\n jobId: string\n}\n\nexport type WixDataAsyncJobStatusValue =\n | 'UNKNOWN_STATUS'\n | 'INITIALIZED'\n | 'PROCESSING'\n | 'SUCCEEDED'\n | 'FAILED'\n\nexport interface WixDataAsyncJobStatus {\n /** Current status of the async operation. */\n status?: WixDataAsyncJobStatusValue\n /** Number of items successfully processed so far. */\n successCount?: number\n}\n\nexport interface WixDataAggregateOptions extends WixDataQueryOptions {}\n\n/**\n * Options for standalone distinct field value queries.\n * @internal\n */\nexport interface WixDataDistinctOptions extends WixDataQueryOptions {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n order?: SortOrder\n paging?: { limit?: number; offset?: number }\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * WixData query specification.\n * Since WixData collections are dynamic, we allow any string field.\n * @internal\n */\nexport interface WixDataQuerySpec extends QuerySpec {\n wql: [\n {\n fields: string[]\n sort: 'BOTH'\n }\n ]\n paging: 'offset'\n}\n\n/**\n * Request object for direct query execution.\n * Extends the SDK's QueryRequest with WixData-specific fields.\n * Use this with `wixData.query(collectionName, queryRequest)` for one-shot queries.\n * @internal\n */\nexport interface WixDataQueryRequest\n extends Omit<SDKQueryRequest<WixDataItem, WixDataQuerySpec>, 'filter'> {\n /**\n * Filter object. Supports operators like `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`,\n * `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.\n *\n * Example:\n * ```js\n * { status: 'active', age: { $gt: 25 } }\n * ```\n */\n filter?: Record<string, any>\n\n /**\n * Cursor-based paging. Use this as an alternative to offset paging.\n *\n * Example:\n * ```js\n * { limit: 10, cursor: 'abc123' }\n * ```\n */\n cursorPaging?: {\n /** Maximum number of items to return. */\n limit?: number\n /** Cursor token pointing to a page of results. */\n cursor?: string\n }\n}\n\nexport interface WixDataQueryOptions extends IncludeReferencesOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n\n /**\n * When `true`, reads data from the primary database instance. This decreases performance but ensures data retrieved is\n * up-to-date even immediately after an update. Learn more about [Wix Data and eventual consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).\n */\n consistentRead?: boolean\n\n /**\n * Prevents hooks from running for the operation. Can only be used in the [backend code of a Wix site](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/backend-code/about-the-site-backend).\n *\n * Default: `false`.\n */\n suppressHooks?: boolean\n\n /**\n * When `true`, operations include draft items. Read operations include draft items in their response, and write operations modify draft items.\n *\n * Default: `false`.\n */\n showDrafts?: boolean\n\n /**\n * Options for [querying Wix app collections](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).\n */\n appOptions?: Record<string, any>\n\n /**\n * When `true`, the query results include a `totalCount` and `totalPages` properties containing the totals of items\n * matching query. Requesting total count slows down the query.\n *\n * Default: `false`\n */\n returnTotalCount?: boolean\n\n /**\n * Requests conditional fields. Currently used in App Collections.\n * Please refer to app collection documentation for a list of valid values.\n */\n includeFieldGroups?: string[]\n}\n\n/**\n * Request object for direct search execution.\n * Matches the shape produced by `SearchBuilder().build()` so it can be passed directly.\n * Use this with `wixData.search(collectionName, searchRequest)` for direct search execution.\n * @internal\n */\nexport interface WixDataSearchRequest {\n /** Search parameters. */\n search?: {\n /** Search text expression. */\n expression?: string | null\n /** Whether to enable fuzzy matching. */\n fuzzy?: boolean | null\n /** Search mode: 'OR' (any term) or 'AND' (all terms). */\n mode?: 'OR' | 'AND' | null\n }\n /** Filter object. */\n filter?: Record<string, any>\n /** Sort array. */\n sort?: { fieldName: string; order?: 'ASC' | 'DESC' }[]\n /** Fields to return in results. */\n fields?: string[]\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\n/**\n * Options for direct search execution.\n * @internal\n */\nexport interface WixDataSearchOptions extends IncludeReferencesOptions {\n /**\n * Language to translate result text into, in [IETF BCP 47 language tag](https://en.wikipedia.org/wiki/IETF_language_tag) format.\n * If provided, the result text is returned in the specified language. If not provided, the result text is not translated.\n *\n * > **Note:** Translation for the specified language must be enabled for the collection in [Wix Multilingual](https://www.wix.com/app-market/wix-multilingual).\n *\n */\n language?: string\n}\n\nexport interface WixDataQueryReferencedOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `asc`\n */\n order?: 'asc' | 'desc'\n\n /**\n * Number of items to skip in the current sort order.\n *\n * Default: `0`\n */\n skip?: number\n\n /**\n * Number of items to load.\n *\n * Default: `50`\n */\n limit?: number\n}\n\nexport interface WixDataQueryReferencedItemsOptions\n extends WixDataQueryOptions,\n ProjectionOptions {\n /**\n * Order of the returned referenced items. Sorted by the date each item was referenced.\n *\n * Default: `ASC`\n */\n order?: SortOrder\n\n /** Paging options. */\n paging?: { limit?: number; offset?: number }\n\n /** Cursor-based paging. */\n cursorPaging?: { cursor?: string; limit?: number }\n}\n\ninterface ProjectionOptions {\n /**\n * Lists of fields to return in a result.\n */\n fields?: string[]\n}\n\nexport interface WixDataItem {\n /**\n * Data item ID.\n */\n _id: string\n\n /**\n * Date and time the item was added to the collection.\n * @readonly\n */\n _createdDate?: Date\n\n /**\n * Date and time the item was last modified. When the item is first inserted, `_createdDate` and `_updatedDate` have\n * the same value.\n * @readonly\n */\n _updatedDate?: Date\n\n /**\n * ID of the user who created the item. Can be modified with site owner permissions.\n */\n _owner?: string\n\n /**\n * Data item contents.\n */\n [key: string]: any\n}\n\nexport type WixDataItemOrId = WixDataItem | string\nexport type Comparable = string | number | Date\n\nexport interface WixDataReference {\n relationshipName: string\n left: WixDataItemOrId\n right: WixDataItemOrId\n}\n\nexport interface Provider<T> {\n get(): T | Promise<T>\n}\n\nexport interface WixDataBulkError extends Error {\n /**\n * Description of the error.\n */\n message: string\n\n /**\n * Error code.\n */\n code: string\n\n /**\n * Index of the item within the request array. Allows for correlation between request and response items.\n */\n originalIndex: number\n\n /**\n * Failed item (or ID in case of `bulkRemove()`).\n */\n item: WixDataItem | string\n}\n\nexport interface WixDataBulkResult {\n /**\n * Number of inserted items.\n */\n inserted: number\n\n /**\n * Number of updated items.\n */\n updated: number\n\n /**\n * Number of removed items.\n */\n removed: number\n\n /**\n * Number of skipped items.\n */\n skipped: number\n\n /**\n * List of errors.\n */\n errors: WixDataBulkError[]\n\n /**\n * List of IDs of inserted items.\n */\n insertedItemIds: string[]\n\n /**\n * List of IDs of updated items.\n */\n updatedItemIds: string[]\n\n /**\n * List of IDs of removed items.\n */\n removedItemIds: string[]\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ class WixDataAggregateOptionsBuilderImpl {
2
+ constructor(options = {}) {
3
+ this.options = options;
4
+ }
5
+ withSuppressHooks(value) {
6
+ return this.copy({ suppressHooks: value });
7
+ }
8
+ withShowDrafts(value) {
9
+ return this.copy({ showDrafts: value });
10
+ }
11
+ withAppOptions(value) {
12
+ return this.copy({ appOptions: { ...value } });
13
+ }
14
+ withLanguage(value) {
15
+ return this.copy({ language: value });
16
+ }
17
+ withConsistentRead(value) {
18
+ return this.copy({ consistentRead: value });
19
+ }
20
+ withIncludeReferences(value) {
21
+ return this.copy({
22
+ includeReferences: value.map((includeReference) => ({
23
+ ...includeReference,
24
+ })),
25
+ });
26
+ }
27
+ withReturnTotalCount(value) {
28
+ return this.copy({ returnTotalCount: value });
29
+ }
30
+ withIncludeFieldGroups(...value) {
31
+ return this.copy({ includeFieldGroups: [...value] });
32
+ }
33
+ build() {
34
+ return {
35
+ ...this.options,
36
+ ...(this.options.appOptions
37
+ ? { appOptions: { ...this.options.appOptions } }
38
+ : {}),
39
+ ...(this.options.includeReferences
40
+ ? {
41
+ includeReferences: this.options.includeReferences.map((includeReference) => ({ ...includeReference })),
42
+ }
43
+ : {}),
44
+ ...(this.options.includeFieldGroups
45
+ ? { includeFieldGroups: [...this.options.includeFieldGroups] }
46
+ : {}),
47
+ };
48
+ }
49
+ copy(options) {
50
+ return new WixDataAggregateOptionsBuilderImpl({
51
+ ...this.options,
52
+ ...options,
53
+ });
54
+ }
55
+ }
56
+ /**
57
+ * Creates a new WixData aggregate options builder.
58
+ * @internal
59
+ */
60
+ export const AggregateOptionsBuilder = () => new WixDataAggregateOptionsBuilderImpl();
61
+ //# sourceMappingURL=WixDataAggregateOptionsBuilder.js.map
@@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