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

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 (133) 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 +18 -3
  4. package/dist/cjs/api/WixDataApi.js.map +1 -1
  5. package/dist/cjs/api/WixDataAsyncRemoveByFilterOptionsBuilder.js +43 -0
  6. package/dist/cjs/api/WixDataAsyncRemoveByFilterOptionsBuilder.js.map +1 -0
  7. package/dist/cjs/api/WixDataBulkInsertOptionsBuilder.js +65 -0
  8. package/dist/cjs/api/WixDataBulkInsertOptionsBuilder.js.map +1 -0
  9. package/dist/cjs/api/WixDataBulkPatchOptionsBuilder.js +60 -0
  10. package/dist/cjs/api/WixDataBulkPatchOptionsBuilder.js.map +1 -0
  11. package/dist/cjs/api/WixDataBulkRemoveOptionsBuilder.js +60 -0
  12. package/dist/cjs/api/WixDataBulkRemoveOptionsBuilder.js.map +1 -0
  13. package/dist/cjs/api/WixDataBulkSaveOptionsBuilder.js +60 -0
  14. package/dist/cjs/api/WixDataBulkSaveOptionsBuilder.js.map +1 -0
  15. package/dist/cjs/api/WixDataBulkUpdateOptionsBuilder.js +65 -0
  16. package/dist/cjs/api/WixDataBulkUpdateOptionsBuilder.js.map +1 -0
  17. package/dist/cjs/api/WixDataCountOptionsBuilder.js +70 -0
  18. package/dist/cjs/api/WixDataCountOptionsBuilder.js.map +1 -0
  19. package/dist/cjs/api/WixDataDistinctOptionsBuilder.js +124 -0
  20. package/dist/cjs/api/WixDataDistinctOptionsBuilder.js.map +1 -0
  21. package/dist/cjs/api/WixDataGetOptionsBuilder.js +93 -0
  22. package/dist/cjs/api/WixDataGetOptionsBuilder.js.map +1 -0
  23. package/dist/cjs/api/WixDataInsertOptionsBuilder.js +65 -0
  24. package/dist/cjs/api/WixDataInsertOptionsBuilder.js.map +1 -0
  25. package/dist/cjs/api/WixDataIsReferencedOptionsBuilder.js +38 -0
  26. package/dist/cjs/api/WixDataIsReferencedOptionsBuilder.js.map +1 -0
  27. package/dist/cjs/api/WixDataPatch.js.map +1 -1
  28. package/dist/cjs/api/WixDataPatchOptionsBuilder.js +48 -0
  29. package/dist/cjs/api/WixDataPatchOptionsBuilder.js.map +1 -0
  30. package/dist/cjs/api/WixDataQueryOptionsBuilder.js +90 -0
  31. package/dist/cjs/api/WixDataQueryOptionsBuilder.js.map +1 -0
  32. package/dist/cjs/api/WixDataQueryReferencedItemsOptionsBuilder.js +127 -0
  33. package/dist/cjs/api/WixDataQueryReferencedItemsOptionsBuilder.js.map +1 -0
  34. package/dist/cjs/api/WixDataRemoveOptionsBuilder.js +60 -0
  35. package/dist/cjs/api/WixDataRemoveOptionsBuilder.js.map +1 -0
  36. package/dist/cjs/api/WixDataSaveOptionsBuilder.js +65 -0
  37. package/dist/cjs/api/WixDataSaveOptionsBuilder.js.map +1 -0
  38. package/dist/cjs/api/WixDataSearchOptionsBuilder.js +50 -0
  39. package/dist/cjs/api/WixDataSearchOptionsBuilder.js.map +1 -0
  40. package/dist/cjs/api/WixDataUpdateOptionsBuilder.js +70 -0
  41. package/dist/cjs/api/WixDataUpdateOptionsBuilder.js.map +1 -0
  42. package/dist/cjs/api/index.js +42 -4
  43. package/dist/cjs/api/index.js.map +1 -1
  44. package/dist/cjs/api/types.js.map +1 -1
  45. package/dist/esm/api/WixDataAggregateOptionsBuilder.js +61 -0
  46. package/dist/esm/api/WixDataAggregateOptionsBuilder.js.map +1 -0
  47. package/dist/esm/api/WixDataApi.js +18 -3
  48. package/dist/esm/api/WixDataApi.js.map +1 -1
  49. package/dist/esm/api/WixDataAsyncRemoveByFilterOptionsBuilder.js +28 -0
  50. package/dist/esm/api/WixDataAsyncRemoveByFilterOptionsBuilder.js.map +1 -0
  51. package/dist/esm/api/WixDataBulkInsertOptionsBuilder.js +40 -0
  52. package/dist/esm/api/WixDataBulkInsertOptionsBuilder.js.map +1 -0
  53. package/dist/esm/api/WixDataBulkPatchOptionsBuilder.js +37 -0
  54. package/dist/esm/api/WixDataBulkPatchOptionsBuilder.js.map +1 -0
  55. package/dist/esm/api/WixDataBulkRemoveOptionsBuilder.js +37 -0
  56. package/dist/esm/api/WixDataBulkRemoveOptionsBuilder.js.map +1 -0
  57. package/dist/esm/api/WixDataBulkSaveOptionsBuilder.js +37 -0
  58. package/dist/esm/api/WixDataBulkSaveOptionsBuilder.js.map +1 -0
  59. package/dist/esm/api/WixDataBulkUpdateOptionsBuilder.js +40 -0
  60. package/dist/esm/api/WixDataBulkUpdateOptionsBuilder.js.map +1 -0
  61. package/dist/esm/api/WixDataCountOptionsBuilder.js +43 -0
  62. package/dist/esm/api/WixDataCountOptionsBuilder.js.map +1 -0
  63. package/dist/esm/api/WixDataDistinctOptionsBuilder.js +77 -0
  64. package/dist/esm/api/WixDataDistinctOptionsBuilder.js.map +1 -0
  65. package/dist/esm/api/WixDataGetOptionsBuilder.js +62 -0
  66. package/dist/esm/api/WixDataGetOptionsBuilder.js.map +1 -0
  67. package/dist/esm/api/WixDataInsertOptionsBuilder.js +40 -0
  68. package/dist/esm/api/WixDataInsertOptionsBuilder.js.map +1 -0
  69. package/dist/esm/api/WixDataIsReferencedOptionsBuilder.js +25 -0
  70. package/dist/esm/api/WixDataIsReferencedOptionsBuilder.js.map +1 -0
  71. package/dist/esm/api/WixDataPatchOptionsBuilder.js +31 -0
  72. package/dist/esm/api/WixDataPatchOptionsBuilder.js.map +1 -0
  73. package/dist/esm/api/WixDataQueryOptionsBuilder.js +61 -0
  74. package/dist/esm/api/WixDataQueryOptionsBuilder.js.map +1 -0
  75. package/dist/esm/api/WixDataQueryReferencedItemsOptionsBuilder.js +78 -0
  76. package/dist/esm/api/WixDataQueryReferencedItemsOptionsBuilder.js.map +1 -0
  77. package/dist/esm/api/WixDataRemoveOptionsBuilder.js +37 -0
  78. package/dist/esm/api/WixDataRemoveOptionsBuilder.js.map +1 -0
  79. package/dist/esm/api/WixDataSaveOptionsBuilder.js +40 -0
  80. package/dist/esm/api/WixDataSaveOptionsBuilder.js.map +1 -0
  81. package/dist/esm/api/WixDataSearchOptionsBuilder.js +37 -0
  82. package/dist/esm/api/WixDataSearchOptionsBuilder.js.map +1 -0
  83. package/dist/esm/api/WixDataUpdateOptionsBuilder.js +43 -0
  84. package/dist/esm/api/WixDataUpdateOptionsBuilder.js.map +1 -0
  85. package/dist/esm/api/index.js +19 -0
  86. package/dist/esm/api/index.js.map +1 -1
  87. package/dist/types/api/WixDataAggregateOptionsBuilder.d.ts +25 -0
  88. package/dist/types/api/WixDataAggregateOptionsBuilder.d.ts.map +1 -0
  89. package/dist/types/api/WixDataApi.d.ts +8 -10
  90. package/dist/types/api/WixDataApi.d.ts.map +1 -1
  91. package/dist/types/api/WixDataAsyncRemoveByFilterOptionsBuilder.d.ts +16 -0
  92. package/dist/types/api/WixDataAsyncRemoveByFilterOptionsBuilder.d.ts.map +1 -0
  93. package/dist/types/api/WixDataBulkInsertOptionsBuilder.d.ts +19 -0
  94. package/dist/types/api/WixDataBulkInsertOptionsBuilder.d.ts.map +1 -0
  95. package/dist/types/api/WixDataBulkPatchOptionsBuilder.d.ts +20 -0
  96. package/dist/types/api/WixDataBulkPatchOptionsBuilder.d.ts.map +1 -0
  97. package/dist/types/api/WixDataBulkRemoveOptionsBuilder.d.ts +19 -0
  98. package/dist/types/api/WixDataBulkRemoveOptionsBuilder.d.ts.map +1 -0
  99. package/dist/types/api/WixDataBulkSaveOptionsBuilder.d.ts +18 -0
  100. package/dist/types/api/WixDataBulkSaveOptionsBuilder.d.ts.map +1 -0
  101. package/dist/types/api/WixDataBulkUpdateOptionsBuilder.d.ts +20 -0
  102. package/dist/types/api/WixDataBulkUpdateOptionsBuilder.d.ts.map +1 -0
  103. package/dist/types/api/WixDataCountOptionsBuilder.d.ts +21 -0
  104. package/dist/types/api/WixDataCountOptionsBuilder.d.ts.map +1 -0
  105. package/dist/types/api/WixDataDistinctOptionsBuilder.d.ts +37 -0
  106. package/dist/types/api/WixDataDistinctOptionsBuilder.d.ts.map +1 -0
  107. package/dist/types/api/WixDataGetOptionsBuilder.d.ts +25 -0
  108. package/dist/types/api/WixDataGetOptionsBuilder.d.ts.map +1 -0
  109. package/dist/types/api/WixDataInsertOptionsBuilder.d.ts +19 -0
  110. package/dist/types/api/WixDataInsertOptionsBuilder.d.ts.map +1 -0
  111. package/dist/types/api/WixDataIsReferencedOptionsBuilder.d.ts +15 -0
  112. package/dist/types/api/WixDataIsReferencedOptionsBuilder.d.ts.map +1 -0
  113. package/dist/types/api/WixDataPatch.d.ts +3 -4
  114. package/dist/types/api/WixDataPatch.d.ts.map +1 -1
  115. package/dist/types/api/WixDataPatchOptionsBuilder.d.ts +19 -0
  116. package/dist/types/api/WixDataPatchOptionsBuilder.d.ts.map +1 -0
  117. package/dist/types/api/WixDataQueryOptionsBuilder.d.ts +25 -0
  118. package/dist/types/api/WixDataQueryOptionsBuilder.d.ts.map +1 -0
  119. package/dist/types/api/WixDataQueryReferencedItemsOptionsBuilder.d.ts +36 -0
  120. package/dist/types/api/WixDataQueryReferencedItemsOptionsBuilder.d.ts.map +1 -0
  121. package/dist/types/api/WixDataRemoveOptionsBuilder.d.ts +19 -0
  122. package/dist/types/api/WixDataRemoveOptionsBuilder.d.ts.map +1 -0
  123. package/dist/types/api/WixDataSaveOptionsBuilder.d.ts +19 -0
  124. package/dist/types/api/WixDataSaveOptionsBuilder.d.ts.map +1 -0
  125. package/dist/types/api/WixDataSearchOptionsBuilder.d.ts +19 -0
  126. package/dist/types/api/WixDataSearchOptionsBuilder.d.ts.map +1 -0
  127. package/dist/types/api/WixDataUpdateOptionsBuilder.d.ts +21 -0
  128. package/dist/types/api/WixDataUpdateOptionsBuilder.d.ts.map +1 -0
  129. package/dist/types/api/index.d.ts +40 -2
  130. package/dist/types/api/index.d.ts.map +1 -1
  131. package/dist/types/api/types.d.ts +135 -14
  132. package/dist/types/api/types.d.ts.map +1 -1
  133. package/package.json +2 -2
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.GetOptionsBuilder = void 0;
5
+ /**
6
+ * WixData get options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataGetOptionsBuilderImpl {
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
+ withLanguage(value) {
32
+ return this.copy({
33
+ language: value
34
+ });
35
+ }
36
+ withConsistentRead(value) {
37
+ return this.copy({
38
+ consistentRead: value
39
+ });
40
+ }
41
+ withFields(...value) {
42
+ return this.copy({
43
+ fields: [...value]
44
+ });
45
+ }
46
+ withIncludeReferences(value) {
47
+ return this.copy({
48
+ includeReferences: value.map(includeReference => ({
49
+ ...includeReference
50
+ }))
51
+ });
52
+ }
53
+ withIncludeFieldGroups(...value) {
54
+ return this.copy({
55
+ includeFieldGroups: [...value]
56
+ });
57
+ }
58
+ build() {
59
+ return {
60
+ ...this.options,
61
+ ...(this.options.appOptions ? {
62
+ appOptions: {
63
+ ...this.options.appOptions
64
+ }
65
+ } : {}),
66
+ ...(this.options.fields ? {
67
+ fields: [...this.options.fields]
68
+ } : {}),
69
+ ...(this.options.includeReferences ? {
70
+ includeReferences: this.options.includeReferences.map(includeReference => ({
71
+ ...includeReference
72
+ }))
73
+ } : {}),
74
+ ...(this.options.includeFieldGroups ? {
75
+ includeFieldGroups: [...this.options.includeFieldGroups]
76
+ } : {})
77
+ };
78
+ }
79
+ copy(options) {
80
+ return new WixDataGetOptionsBuilderImpl({
81
+ ...this.options,
82
+ ...options
83
+ });
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Creates a new WixData get options builder.
89
+ * @internal
90
+ */
91
+ const GetOptionsBuilder = () => new WixDataGetOptionsBuilderImpl();
92
+ exports.GetOptionsBuilder = GetOptionsBuilder;
93
+ //# sourceMappingURL=WixDataGetOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataGetOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withLanguage","language","withConsistentRead","consistentRead","withFields","fields","withIncludeReferences","includeReferences","map","includeReference","withIncludeFieldGroups","includeFieldGroups","build","GetOptionsBuilder","exports"],"sources":["../../../src/api/WixDataGetOptionsBuilder.ts"],"sourcesContent":["import type { WixDataGetOptions } from './types'\n\n/**\n * WixData get options builder.\n * @internal\n */\nexport interface WixDataGetOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataGetOptionsBuilder\n withShowDrafts(value: boolean): WixDataGetOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataGetOptionsBuilder\n withLanguage(value: string): WixDataGetOptionsBuilder\n withConsistentRead(value: boolean): WixDataGetOptionsBuilder\n withFields(...value: string[]): WixDataGetOptionsBuilder\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataGetOptionsBuilder\n withIncludeFieldGroups(...value: string[]): WixDataGetOptionsBuilder\n build(): WixDataGetOptions\n}\n\nclass WixDataGetOptionsBuilderImpl implements WixDataGetOptionsBuilder {\n constructor(private readonly options: WixDataGetOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataGetOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataGetOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataGetOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withLanguage(value: string): WixDataGetOptionsBuilder {\n return this.copy({ language: value })\n }\n\n withConsistentRead(value: boolean): WixDataGetOptionsBuilder {\n return this.copy({ consistentRead: value })\n }\n\n withFields(...value: string[]): WixDataGetOptionsBuilder {\n return this.copy({ fields: [...value] })\n }\n\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataGetOptionsBuilder {\n return this.copy({\n includeReferences: value.map((includeReference) => ({\n ...includeReference,\n })),\n })\n }\n\n withIncludeFieldGroups(...value: string[]): WixDataGetOptionsBuilder {\n return this.copy({ includeFieldGroups: [...value] })\n }\n\n build(): WixDataGetOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n ...(this.options.fields ? { fields: [...this.options.fields] } : {}),\n ...(this.options.includeReferences\n ? {\n includeReferences: this.options.includeReferences.map(\n (includeReference) => ({ ...includeReference })\n ),\n }\n : {}),\n ...(this.options.includeFieldGroups\n ? { includeFieldGroups: [...this.options.includeFieldGroups] }\n : {}),\n }\n }\n\n private copy(options: WixDataGetOptions): WixDataGetOptionsBuilder {\n return new WixDataGetOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData get options builder.\n * @internal\n */\nexport const GetOptionsBuilder: () => WixDataGetOptionsBuilder = () =>\n new WixDataGetOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AAeA,MAAMA,4BAA4B,CAAqC;EACrEC,WAAWA,CAAkBC,OAA0B,GAAG,CAAC,CAAC,EAAE;IAAA,KAAjCA,OAA0B,GAA1BA,OAA0B;EAAQ;EAE/DC,iBAAiBA,CAACC,KAAc,EAA4B;IAC1D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,aAAa,EAAEF;IAAM,CAAC,CAAC;EAC5C;EAEAG,cAAcA,CAACH,KAAc,EAA4B;IACvD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEG,UAAU,EAAEJ;IAAM,CAAC,CAAC;EACzC;EAEAK,cAAcA,CAACL,KAA0B,EAA4B;IACnE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEK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iBAAiB,CAACC,GAAG,CAClDC,gBAAgB,KAAM;UAAE,GAAGA;QAAiB,CAAC,CAChD;MACF,CAAC,GACD,CAAC,CAAC,CAAC;MACP,IAAI,IAAI,CAAClB,OAAO,CAACoB,kBAAkB,GAC/B;QAAEA,kBAAkB,EAAE,CAAC,GAAG,IAAI,CAACpB,OAAO,CAACoB,kBAAkB;MAAE,CAAC,GAC5D,CAAC,CAAC;IACR,CAAC;EACH;EAEQjB,IAAIA,CAACH,OAA0B,EAA4B;IACjE,OAAO,IAAIF,4BAA4B,CAAC;MACtC,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMsB,iBAAiD,GAAGA,CAAA,KAC/D,IAAIxB,4BAA4B,CAAC,CAAC;AAAAyB,OAAA,CAAAD,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.InsertOptionsBuilder = void 0;
5
+ /**
6
+ * WixData insert options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataInsertOptionsBuilderImpl {
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 WixDataInsertOptionsBuilderImpl({
53
+ ...this.options,
54
+ ...options
55
+ });
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Creates a new WixData insert options builder.
61
+ * @internal
62
+ */
63
+ const InsertOptionsBuilder = () => new WixDataInsertOptionsBuilderImpl();
64
+ exports.InsertOptionsBuilder = InsertOptionsBuilder;
65
+ //# sourceMappingURL=WixDataInsertOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataInsertOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withIncludeReferences","includeReferences","withSaveReferences","saveReferences","build","InsertOptionsBuilder","exports"],"sources":["../../../src/api/WixDataInsertOptionsBuilder.ts"],"sourcesContent":["import type { WixDataInsertOptions } from './types'\n\n/**\n * WixData insert options builder.\n * @internal\n */\nexport interface WixDataInsertOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataInsertOptionsBuilder\n withShowDrafts(value: boolean): WixDataInsertOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataInsertOptionsBuilder\n withIncludeReferences(value: boolean): WixDataInsertOptionsBuilder\n withSaveReferences(value: boolean): WixDataInsertOptionsBuilder\n build(): WixDataInsertOptions\n}\n\nclass WixDataInsertOptionsBuilderImpl implements WixDataInsertOptionsBuilder {\n constructor(private readonly options: WixDataInsertOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataInsertOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataInsertOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataInsertOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withIncludeReferences(value: boolean): WixDataInsertOptionsBuilder {\n return this.copy({ includeReferences: value })\n }\n\n withSaveReferences(value: boolean): WixDataInsertOptionsBuilder {\n return this.copy({ saveReferences: value })\n }\n\n build(): WixDataInsertOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n }\n }\n\n private copy(options: WixDataInsertOptions): WixDataInsertOptionsBuilder {\n return new WixDataInsertOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData insert options builder.\n * @internal\n */\nexport const InsertOptionsBuilder: () => WixDataInsertOptionsBuilder = () =>\n new WixDataInsertOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AAUA,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,KAAKA,CAAA,EAAyB;IAC5B,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,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,MAAMc,oBAAuD,GAAGA,CAAA,KACrE,IAAIhB,+BAA+B,CAAC,CAAC;AAAAiB,OAAA,CAAAD,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.IsReferencedOptionsBuilder = void 0;
5
+ /**
6
+ * WixData isReferenced options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataIsReferencedOptionsBuilderImpl {
11
+ constructor(options = {}) {
12
+ this.options = options;
13
+ }
14
+ withConsistentRead(value) {
15
+ return this.copy({
16
+ consistentRead: value
17
+ });
18
+ }
19
+ build() {
20
+ return {
21
+ ...this.options
22
+ };
23
+ }
24
+ copy(options) {
25
+ return new WixDataIsReferencedOptionsBuilderImpl({
26
+ ...this.options,
27
+ ...options
28
+ });
29
+ }
30
+ }
31
+
32
+ /**
33
+ * Creates a new WixData isReferenced options builder.
34
+ * @internal
35
+ */
36
+ const IsReferencedOptionsBuilder = () => new WixDataIsReferencedOptionsBuilderImpl();
37
+ exports.IsReferencedOptionsBuilder = IsReferencedOptionsBuilder;
38
+ //# sourceMappingURL=WixDataIsReferencedOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataIsReferencedOptionsBuilderImpl","constructor","options","withConsistentRead","value","copy","consistentRead","build","IsReferencedOptionsBuilder","exports"],"sources":["../../../src/api/WixDataIsReferencedOptionsBuilder.ts"],"sourcesContent":["import type { WixDataIsReferencedOptions } from './types'\n\n/**\n * WixData isReferenced options builder.\n * @internal\n */\nexport interface WixDataIsReferencedOptionsBuilder {\n withConsistentRead(value: boolean): WixDataIsReferencedOptionsBuilder\n build(): WixDataIsReferencedOptions\n}\n\nclass WixDataIsReferencedOptionsBuilderImpl\n implements WixDataIsReferencedOptionsBuilder\n{\n constructor(private readonly options: WixDataIsReferencedOptions = {}) {}\n\n withConsistentRead(value: boolean): WixDataIsReferencedOptionsBuilder {\n return this.copy({ consistentRead: value })\n }\n\n build(): WixDataIsReferencedOptions {\n return {\n ...this.options,\n }\n }\n\n private copy(\n options: WixDataIsReferencedOptions\n ): WixDataIsReferencedOptionsBuilder {\n return new WixDataIsReferencedOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData isReferenced options builder.\n * @internal\n */\nexport const IsReferencedOptionsBuilder: () => WixDataIsReferencedOptionsBuilder =\n () => new WixDataIsReferencedOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AAMA,MAAMA,qCAAqC,CAE3C;EACEC,WAAWA,CAAkBC,OAAmC,GAAG,CAAC,CAAC,EAAE;IAAA,KAA1CA,OAAmC,GAAnCA,OAAmC;EAAQ;EAExEC,kBAAkBA,CAACC,KAAc,EAAqC;IACpE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,cAAc,EAAEF;IAAM,CAAC,CAAC;EAC7C;EAEAG,KAAKA,CAAA,EAA+B;IAClC,OAAO;MACL,GAAG,IAAI,CAACL;IACV,CAAC;EACH;EAEQG,IAAIA,CACVH,OAAmC,EACA;IACnC,OAAO,IAAIF,qCAAqC,CAAC;MAC/C,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMM,0BAAmE,GAC9EA,CAAA,KAAM,IAAIR,qCAAqC,CAAC,CAAC;AAAAS,OAAA,CAAAD,0BAAA,GAAAA,0BAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../../src/api/WixDataPatch.ts"],"sourcesContent":["import {\n BaseOptions,\n WixDataOptions,\n WixDataItem,\n WixDataBulkResult,\n WixDataAsyncByFilterOptions,\n WixDataAsyncJob,\n} from './types'\nimport { WixDataFilter } from './WixDataFilter'\nimport { FieldModificationsBuilder } from './WixDataFieldModificationsBuilder'\n\nexport interface WixDataPatchOptions extends BaseOptions {\n /**\n * If provided, item will be patched only if condition is met.\n */\n condition?: WixDataFilter\n}\n\nexport interface WixDataBulkPatchOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be patched.\n */\n condition?: WixDataFilter\n}\n\n/**\n * @builder\n */\nexport interface WixDataBulkPatch\n extends FieldModificationsBuilder<WixDataBulkPatch> {\n /**\n * Runs the bulk patch operation and returns a Promise that resolves to information about the results.\n *\n * @public\n * @documentationMaturity preview\n * @returns Bulk operation results.\n */\n run(options?: WixDataBulkPatchOptions): Promise<WixDataBulkResult>\n}\n\n/**\n * @builder\n */\nexport interface WixDataPatchByFilter\n extends FieldModificationsBuilder<WixDataPatchByFilter> {\n /**\n * Starts the async patch operation and returns a Promise that resolves to the async job.\n *\n * @public\n * @documentationMaturity preview\n * @returns Async job information.\n */\n run(options?: WixDataAsyncByFilterOptions): Promise<WixDataAsyncJob>\n}\n\n/**\n * @builder\n */\nexport interface WixDataPatch extends FieldModificationsBuilder<WixDataPatch> {\n /**\n * Runs the patch operation and returns a Promise that resolves to the patched item and operation metadata.\n *\n * @public\n * @documentationMaturity preview\n * @returns Modified data item.\n */\n\n run(options?: WixDataPatchOptions): Promise<WixDataItem | null>\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../../src/api/WixDataPatch.ts"],"sourcesContent":["import {\n BaseOptions,\n WixDataOptions,\n WixDataItem,\n WixDataBulkResult,\n WixDataAsyncByFilterOptions,\n WixDataAsyncJob,\n WixDataFilterInput,\n} from './types'\nimport { FieldModificationsBuilder } from './WixDataFieldModificationsBuilder'\n\nexport interface WixDataPatchOptions extends BaseOptions {\n /**\n * If provided, item will be patched only if condition is met.\n */\n condition?: WixDataFilterInput\n}\n\nexport interface WixDataBulkPatchOptions extends WixDataOptions {\n /**\n * If provided, only items matching condition will be patched.\n */\n condition?: WixDataFilterInput\n}\n\n/**\n * @builder\n */\nexport interface WixDataBulkPatch\n extends FieldModificationsBuilder<WixDataBulkPatch> {\n /**\n * Runs the bulk patch operation and returns a Promise that resolves to information about the results.\n *\n * @public\n * @documentationMaturity preview\n * @returns Bulk operation results.\n */\n run(options?: WixDataBulkPatchOptions): Promise<WixDataBulkResult>\n}\n\n/**\n * @builder\n */\nexport interface WixDataPatchByFilter\n extends FieldModificationsBuilder<WixDataPatchByFilter> {\n /**\n * Starts the async patch operation and returns a Promise that resolves to the async job.\n *\n * @public\n * @documentationMaturity preview\n * @returns Async job information.\n */\n run(options?: WixDataAsyncByFilterOptions): Promise<WixDataAsyncJob>\n}\n\n/**\n * @builder\n */\nexport interface WixDataPatch extends FieldModificationsBuilder<WixDataPatch> {\n /**\n * Runs the patch operation and returns a Promise that resolves to the patched item and operation metadata.\n *\n * @public\n * @documentationMaturity preview\n * @returns Modified data item.\n */\n\n run(options?: WixDataPatchOptions): Promise<WixDataItem | null>\n}\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.PatchOptionsBuilder = void 0;
5
+ /**
6
+ * WixData patch options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataPatchOptionsBuilderImpl {
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
+ withCondition(value) {
25
+ return this.copy({
26
+ condition: value.filter
27
+ });
28
+ }
29
+ build() {
30
+ return {
31
+ ...this.options
32
+ };
33
+ }
34
+ copy(options) {
35
+ return new WixDataPatchOptionsBuilderImpl({
36
+ ...this.options,
37
+ ...options
38
+ });
39
+ }
40
+ }
41
+
42
+ /**
43
+ * Creates a new WixData patch options builder.
44
+ * @internal
45
+ */
46
+ const PatchOptionsBuilder = () => new WixDataPatchOptionsBuilderImpl();
47
+ exports.PatchOptionsBuilder = PatchOptionsBuilder;
48
+ //# sourceMappingURL=WixDataPatchOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataPatchOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withCondition","condition","filter","build","PatchOptionsBuilder","exports"],"sources":["../../../src/api/WixDataPatchOptionsBuilder.ts"],"sourcesContent":["import type { FilterExpression } from '@wix/sdk-types'\nimport type { WixDataItem, WixDataQuerySpec } from './types'\nimport type { WixDataPatchOptions } from './WixDataPatch'\n\n/**\n * WixData patch options builder.\n * @internal\n */\nexport interface WixDataPatchOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataPatchOptionsBuilder\n withShowDrafts(value: boolean): WixDataPatchOptionsBuilder\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataPatchOptionsBuilder\n build(): WixDataPatchOptions\n}\n\nclass WixDataPatchOptionsBuilderImpl implements WixDataPatchOptionsBuilder {\n constructor(private readonly options: WixDataPatchOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataPatchOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataPatchOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataPatchOptionsBuilder {\n return this.copy({ condition: value.filter })\n }\n\n build(): WixDataPatchOptions {\n return {\n ...this.options,\n }\n }\n\n private copy(options: WixDataPatchOptions): WixDataPatchOptionsBuilder {\n return new WixDataPatchOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData patch options builder.\n * @internal\n */\nexport const PatchOptionsBuilder: () => WixDataPatchOptionsBuilder = () =>\n new WixDataPatchOptionsBuilderImpl()\n"],"mappings":";;;;AAIA;AACA;AACA;AACA;;AAUA,MAAMA,8BAA8B,CAAuC;EACzEC,WAAWA,CAAkBC,OAA4B,GAAG,CAAC,CAAC,EAAE;IAAA,KAAnCA,OAA4B,GAA5BA,OAA4B;EAAQ;EAEjEC,iBAAiBA,CAACC,KAAc,EAA8B;IAC5D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,aAAa,EAAEF;IAAM,CAAC,CAAC;EAC5C;EAEAG,cAAcA,CAACH,KAAc,EAA8B;IACzD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEG,UAAU,EAAEJ;IAAM,CAAC,CAAC;EACzC;EAEAK,aAAaA,CACXL,KAAsD,EAC1B;IAC5B,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEK,SAAS,EAAEN,KAAK,CAACO;IAAO,CAAC,CAAC;EAC/C;EAEAC,KAAKA,CAAA,EAAwB;IAC3B,OAAO;MACL,GAAG,IAAI,CAACV;IACV,CAAC;EACH;EAEQG,IAAIA,CAACH,OAA4B,EAA8B;IACrE,OAAO,IAAIF,8BAA8B,CAAC;MACxC,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAMW,mBAAqD,GAAGA,CAAA,KACnE,IAAIb,8BAA8B,CAAC,CAAC;AAAAc,OAAA,CAAAD,mBAAA,GAAAA,mBAAA","ignoreList":[]}
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.QueryOptionsBuilder = void 0;
5
+ /**
6
+ * WixData query options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataQueryOptionsBuilderImpl {
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
+ withLanguage(value) {
32
+ return this.copy({
33
+ language: value
34
+ });
35
+ }
36
+ withConsistentRead(value) {
37
+ return this.copy({
38
+ consistentRead: value
39
+ });
40
+ }
41
+ withIncludeReferences(value) {
42
+ return this.copy({
43
+ includeReferences: value.map(includeReference => ({
44
+ ...includeReference
45
+ }))
46
+ });
47
+ }
48
+ withReturnTotalCount(value) {
49
+ return this.copy({
50
+ returnTotalCount: value
51
+ });
52
+ }
53
+ withIncludeFieldGroups(...value) {
54
+ return this.copy({
55
+ includeFieldGroups: [...value]
56
+ });
57
+ }
58
+ build() {
59
+ return {
60
+ ...this.options,
61
+ ...(this.options.appOptions ? {
62
+ appOptions: {
63
+ ...this.options.appOptions
64
+ }
65
+ } : {}),
66
+ ...(this.options.includeReferences ? {
67
+ includeReferences: this.options.includeReferences.map(includeReference => ({
68
+ ...includeReference
69
+ }))
70
+ } : {}),
71
+ ...(this.options.includeFieldGroups ? {
72
+ includeFieldGroups: [...this.options.includeFieldGroups]
73
+ } : {})
74
+ };
75
+ }
76
+ copy(options) {
77
+ return new WixDataQueryOptionsBuilderImpl({
78
+ ...this.options,
79
+ ...options
80
+ });
81
+ }
82
+ }
83
+
84
+ /**
85
+ * Creates a new WixData query options builder.
86
+ * @internal
87
+ */
88
+ const QueryOptionsBuilder = () => new WixDataQueryOptionsBuilderImpl();
89
+ exports.QueryOptionsBuilder = QueryOptionsBuilder;
90
+ //# sourceMappingURL=WixDataQueryOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataQueryOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withLanguage","language","withConsistentRead","consistentRead","withIncludeReferences","includeReferences","map","includeReference","withReturnTotalCount","returnTotalCount","withIncludeFieldGroups","includeFieldGroups","build","QueryOptionsBuilder","exports"],"sources":["../../../src/api/WixDataQueryOptionsBuilder.ts"],"sourcesContent":["import type { WixDataQueryOptions } from './types'\n\n/**\n * WixData query options builder.\n * @internal\n */\nexport interface WixDataQueryOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataQueryOptionsBuilder\n withShowDrafts(value: boolean): WixDataQueryOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataQueryOptionsBuilder\n withLanguage(value: string): WixDataQueryOptionsBuilder\n withConsistentRead(value: boolean): WixDataQueryOptionsBuilder\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataQueryOptionsBuilder\n withReturnTotalCount(value: boolean): WixDataQueryOptionsBuilder\n withIncludeFieldGroups(...value: string[]): WixDataQueryOptionsBuilder\n build(): WixDataQueryOptions\n}\n\nclass WixDataQueryOptionsBuilderImpl implements WixDataQueryOptionsBuilder {\n constructor(private readonly options: WixDataQueryOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataQueryOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataQueryOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataQueryOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withLanguage(value: string): WixDataQueryOptionsBuilder {\n return this.copy({ language: value })\n }\n\n withConsistentRead(value: boolean): WixDataQueryOptionsBuilder {\n return this.copy({ consistentRead: value })\n }\n\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataQueryOptionsBuilder {\n return this.copy({\n includeReferences: value.map((includeReference) => ({\n ...includeReference,\n })),\n })\n }\n\n withReturnTotalCount(value: boolean): WixDataQueryOptionsBuilder {\n return this.copy({ returnTotalCount: value })\n }\n\n withIncludeFieldGroups(...value: string[]): WixDataQueryOptionsBuilder {\n return this.copy({ includeFieldGroups: [...value] })\n }\n\n build(): WixDataQueryOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n ...(this.options.includeReferences\n ? {\n includeReferences: this.options.includeReferences.map(\n (includeReference) => ({ ...includeReference })\n ),\n }\n : {}),\n ...(this.options.includeFieldGroups\n ? { includeFieldGroups: [...this.options.includeFieldGroups] }\n : {}),\n }\n }\n\n private copy(options: WixDataQueryOptions): WixDataQueryOptionsBuilder {\n return new WixDataQueryOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData query options builder.\n * @internal\n */\nexport const QueryOptionsBuilder: () => WixDataQueryOptionsBuilder = () =>\n new WixDataQueryOptionsBuilderImpl()\n"],"mappings":";;;;AAEA;AACA;AACA;AACA;;AAeA,MAAMA,8BAA8B,CAAuC;EACzEC,WAAWA,CAAkBC,OAA4B,GAAG,CAAC,CAAC,EAAE;IAAA,KAAnCA,OAA4B,GAA5BA,OAA4B;EAAQ;EAEjEC,iBAAiBA,CAACC,KAAc,EAA8B;IAC5D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEC,aAAa,EAAEF;IAAM,CAAC,CAAC;EAC5C;EAEAG,cAAcA,CAACH,KAAc,EAA8B;IACzD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEG,UAAU,EAAEJ;IAAM,CAAC,CAAC;EACzC;EAEAK,cAAcA,CAACL,KAA0B,EAA8B;IACrE,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEK,UAAU,EAAE;QAAE,GAAGN;MAAM;IAAE,CAAC,CAAC;EAChD;EAEAO,YAAYA,CAACP,KAAa,EAA8B;IACtD,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEO,QAAQ,EAAER;IAAM,CAAC,CAAC;EACvC;EAEAS,kBAAkBA,CAACT,KAAc,EAA8B;IAC7D,OAAO,IAAI,CAACC,IAAI,CAAC;MAAES,cAAc,EAAEV;IAAM,CAAC,CAAC;EAC7C;EAEAW,qBAAqBA,CACnBX,KAA0C,EACd;IAC5B,OAAO,IAAI,CAACC,IAAI,CAAC;MACfW,iBAAiB,EAAEZ,KAAK,CAACa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
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.QueryReferencedItemsOptionsBuilder = void 0;
5
+ /**
6
+ * WixData query referenced items options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataQueryReferencedItemsOptionsBuilderImpl {
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
+ withLanguage(value) {
32
+ return this.copy({
33
+ language: value
34
+ });
35
+ }
36
+ withConsistentRead(value) {
37
+ return this.copy({
38
+ consistentRead: value
39
+ });
40
+ }
41
+ withIncludeReferences(value) {
42
+ return this.copy({
43
+ includeReferences: value.map(includeReference => ({
44
+ ...includeReference
45
+ }))
46
+ });
47
+ }
48
+ withReturnTotalCount(value) {
49
+ return this.copy({
50
+ returnTotalCount: value
51
+ });
52
+ }
53
+ withIncludeFieldGroups(...value) {
54
+ return this.copy({
55
+ includeFieldGroups: [...value]
56
+ });
57
+ }
58
+ withFields(...value) {
59
+ return this.copy({
60
+ fields: [...value]
61
+ });
62
+ }
63
+ withOrder(value) {
64
+ return this.copy({
65
+ order: value
66
+ });
67
+ }
68
+ withPaging(value) {
69
+ return this.copy({
70
+ paging: {
71
+ ...value
72
+ }
73
+ });
74
+ }
75
+ withCursorPaging(value) {
76
+ return this.copy({
77
+ cursorPaging: {
78
+ ...value
79
+ }
80
+ });
81
+ }
82
+ build() {
83
+ return {
84
+ ...this.options,
85
+ ...(this.options.appOptions ? {
86
+ appOptions: {
87
+ ...this.options.appOptions
88
+ }
89
+ } : {}),
90
+ ...(this.options.includeReferences ? {
91
+ includeReferences: this.options.includeReferences.map(includeReference => ({
92
+ ...includeReference
93
+ }))
94
+ } : {}),
95
+ ...(this.options.includeFieldGroups ? {
96
+ includeFieldGroups: [...this.options.includeFieldGroups]
97
+ } : {}),
98
+ ...(this.options.fields ? {
99
+ fields: [...this.options.fields]
100
+ } : {}),
101
+ ...(this.options.paging ? {
102
+ paging: {
103
+ ...this.options.paging
104
+ }
105
+ } : {}),
106
+ ...(this.options.cursorPaging ? {
107
+ cursorPaging: {
108
+ ...this.options.cursorPaging
109
+ }
110
+ } : {})
111
+ };
112
+ }
113
+ copy(options) {
114
+ return new WixDataQueryReferencedItemsOptionsBuilderImpl({
115
+ ...this.options,
116
+ ...options
117
+ });
118
+ }
119
+ }
120
+
121
+ /**
122
+ * Creates a new WixData query referenced items options builder.
123
+ * @internal
124
+ */
125
+ const QueryReferencedItemsOptionsBuilder = () => new WixDataQueryReferencedItemsOptionsBuilderImpl();
126
+ exports.QueryReferencedItemsOptionsBuilder = QueryReferencedItemsOptionsBuilder;
127
+ //# sourceMappingURL=WixDataQueryReferencedItemsOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataQueryReferencedItemsOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withLanguage","language","withConsistentRead","consistentRead","withIncludeReferences","includeReferences","map","includeReference","withReturnTotalCount","returnTotalCount","withIncludeFieldGroups","includeFieldGroups","withFields","fields","withOrder","order","withPaging","paging","withCursorPaging","cursorPaging","build","QueryReferencedItemsOptionsBuilder","exports"],"sources":["../../../src/api/WixDataQueryReferencedItemsOptionsBuilder.ts"],"sourcesContent":["import type { SortOrder } from '../types/data-item-types'\nimport type { WixDataQueryReferencedItemsOptions } from './types'\n\n/**\n * WixData query referenced items options builder.\n * @internal\n */\nexport interface WixDataQueryReferencedItemsOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataQueryReferencedItemsOptionsBuilder\n withShowDrafts(value: boolean): WixDataQueryReferencedItemsOptionsBuilder\n withAppOptions(\n value: Record<string, any>\n ): WixDataQueryReferencedItemsOptionsBuilder\n withLanguage(value: string): WixDataQueryReferencedItemsOptionsBuilder\n withConsistentRead(value: boolean): WixDataQueryReferencedItemsOptionsBuilder\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataQueryReferencedItemsOptionsBuilder\n withReturnTotalCount(\n value: boolean\n ): WixDataQueryReferencedItemsOptionsBuilder\n withIncludeFieldGroups(\n ...value: string[]\n ): WixDataQueryReferencedItemsOptionsBuilder\n withFields(...value: string[]): WixDataQueryReferencedItemsOptionsBuilder\n withOrder(value: SortOrder): WixDataQueryReferencedItemsOptionsBuilder\n withPaging(value: {\n limit?: number\n offset?: number\n }): WixDataQueryReferencedItemsOptionsBuilder\n withCursorPaging(value: {\n cursor?: string\n limit?: number\n }): WixDataQueryReferencedItemsOptionsBuilder\n build(): WixDataQueryReferencedItemsOptions\n}\n\nclass WixDataQueryReferencedItemsOptionsBuilderImpl\n implements WixDataQueryReferencedItemsOptionsBuilder\n{\n constructor(\n private readonly options: WixDataQueryReferencedItemsOptions = {}\n ) {}\n\n withSuppressHooks(value: boolean): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(\n value: Record<string, any>\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withLanguage(value: string): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ language: value })\n }\n\n withConsistentRead(\n value: boolean\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ consistentRead: value })\n }\n\n withIncludeReferences(\n value: { field: string; limit?: number }[]\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({\n includeReferences: value.map((includeReference) => ({\n ...includeReference,\n })),\n })\n }\n\n withReturnTotalCount(\n value: boolean\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ returnTotalCount: value })\n }\n\n withIncludeFieldGroups(\n ...value: string[]\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ includeFieldGroups: [...value] })\n }\n\n withFields(...value: string[]): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ fields: [...value] })\n }\n\n withOrder(value: SortOrder): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ order: value })\n }\n\n withPaging(value: {\n limit?: number\n offset?: number\n }): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ paging: { ...value } })\n }\n\n withCursorPaging(value: {\n cursor?: string\n limit?: number\n }): WixDataQueryReferencedItemsOptionsBuilder {\n return this.copy({ cursorPaging: { ...value } })\n }\n\n build(): WixDataQueryReferencedItemsOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n ...(this.options.includeReferences\n ? {\n includeReferences: this.options.includeReferences.map(\n (includeReference) => ({ ...includeReference })\n ),\n }\n : {}),\n ...(this.options.includeFieldGroups\n ? { includeFieldGroups: [...this.options.includeFieldGroups] }\n : {}),\n ...(this.options.fields ? { fields: [...this.options.fields] } : {}),\n ...(this.options.paging ? { paging: { ...this.options.paging } } : {}),\n ...(this.options.cursorPaging\n ? { cursorPaging: { ...this.options.cursorPaging } }\n : {}),\n }\n }\n\n private copy(\n options: WixDataQueryReferencedItemsOptions\n ): WixDataQueryReferencedItemsOptionsBuilder {\n return new WixDataQueryReferencedItemsOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData query referenced items options builder.\n * @internal\n */\nexport const QueryReferencedItemsOptionsBuilder: () => WixDataQueryReferencedItemsOptionsBuilder =\n () => new WixDataQueryReferencedItemsOptionsBuilderImpl()\n"],"mappings":";;;;AAGA;AACA;AACA;AACA;;AA+BA,MAAMA,6CAA6C,CAEnD;EACEC,WAAWA,CACQC,OAA2C,GAAG,CAAC,CAAC,EACjE;IAAA,KADiBA,OAA2C,GAA3CA,OAA2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;QAAO;MAAE,CAAC,GAAG,CAAC,CAAC,CAAC;MACtE,IAAI,IAAI,CAAC1B,OAAO,CAAC4B,YAAY,GACzB;QAAEA,YAAY,EAAE;UAAE,GAAG,IAAI,CAAC5B,OAAO,CAAC4B;QAAa;MAAE,CAAC,GAClD,CAAC,CAAC;IACR,CAAC;EACH;EAEQzB,IAAIA,CACVH,OAA2C,EACA;IAC3C,OAAO,IAAIF,6CAA6C,CAAC;MACvD,GAAG,IAAI,CAACE,OAAO;MACf,GAAGA;IACL,CAAC,CAAC;EACJ;AACF;;AAEA;AACA;AACA;AACA;AACO,MAAM8B,kCAAmF,GAC9FA,CAAA,KAAM,IAAIhC,6CAA6C,CAAC,CAAC;AAAAiC,OAAA,CAAAD,kCAAA,GAAAA,kCAAA","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.RemoveOptionsBuilder = void 0;
5
+ /**
6
+ * WixData remove options builder.
7
+ * @internal
8
+ */
9
+
10
+ class WixDataRemoveOptionsBuilderImpl {
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
+ withCondition(value) {
32
+ return this.copy({
33
+ condition: value.filter
34
+ });
35
+ }
36
+ build() {
37
+ return {
38
+ ...this.options,
39
+ ...(this.options.appOptions ? {
40
+ appOptions: {
41
+ ...this.options.appOptions
42
+ }
43
+ } : {})
44
+ };
45
+ }
46
+ copy(options) {
47
+ return new WixDataRemoveOptionsBuilderImpl({
48
+ ...this.options,
49
+ ...options
50
+ });
51
+ }
52
+ }
53
+
54
+ /**
55
+ * Creates a new WixData remove options builder.
56
+ * @internal
57
+ */
58
+ const RemoveOptionsBuilder = () => new WixDataRemoveOptionsBuilderImpl();
59
+ exports.RemoveOptionsBuilder = RemoveOptionsBuilder;
60
+ //# sourceMappingURL=WixDataRemoveOptionsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["WixDataRemoveOptionsBuilderImpl","constructor","options","withSuppressHooks","value","copy","suppressHooks","withShowDrafts","showDrafts","withAppOptions","appOptions","withCondition","condition","filter","build","RemoveOptionsBuilder","exports"],"sources":["../../../src/api/WixDataRemoveOptionsBuilder.ts"],"sourcesContent":["import type { FilterExpression } from '@wix/sdk-types'\nimport type {\n WixDataItem,\n WixDataQuerySpec,\n WixDataRemoveOptions,\n} from './types'\n\n/**\n * WixData remove options builder.\n * @internal\n */\nexport interface WixDataRemoveOptionsBuilder {\n withSuppressHooks(value: boolean): WixDataRemoveOptionsBuilder\n withShowDrafts(value: boolean): WixDataRemoveOptionsBuilder\n withAppOptions(value: Record<string, any>): WixDataRemoveOptionsBuilder\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataRemoveOptionsBuilder\n build(): WixDataRemoveOptions\n}\n\nclass WixDataRemoveOptionsBuilderImpl implements WixDataRemoveOptionsBuilder {\n constructor(private readonly options: WixDataRemoveOptions = {}) {}\n\n withSuppressHooks(value: boolean): WixDataRemoveOptionsBuilder {\n return this.copy({ suppressHooks: value })\n }\n\n withShowDrafts(value: boolean): WixDataRemoveOptionsBuilder {\n return this.copy({ showDrafts: value })\n }\n\n withAppOptions(value: Record<string, any>): WixDataRemoveOptionsBuilder {\n return this.copy({ appOptions: { ...value } })\n }\n\n withCondition(\n value: FilterExpression<WixDataItem, WixDataQuerySpec>\n ): WixDataRemoveOptionsBuilder {\n return this.copy({ condition: value.filter })\n }\n\n build(): WixDataRemoveOptions {\n return {\n ...this.options,\n ...(this.options.appOptions\n ? { appOptions: { ...this.options.appOptions } }\n : {}),\n }\n }\n\n private copy(options: WixDataRemoveOptions): WixDataRemoveOptionsBuilder {\n return new WixDataRemoveOptionsBuilderImpl({\n ...this.options,\n ...options,\n })\n }\n}\n\n/**\n * Creates a new WixData remove options builder.\n * @internal\n */\nexport const RemoveOptionsBuilder: () => WixDataRemoveOptionsBuilder = () =>\n new WixDataRemoveOptionsBuilderImpl()\n"],"mappings":";;;;AAOA;AACA;AACA;AACA;;AAWA,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,aAAaA,CACXP,KAAsD,EACzB;IAC7B,OAAO,IAAI,CAACC,IAAI,CAAC;MAAEO,SAAS,EAAER,KAAK,CAACS;IAAO,CAAC,CAAC;EAC/C;EAEAC,KAAKA,CAAA,EAAyB;IAC5B,OAAO;MACL,GAAG,IAAI,CAACZ,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,MAAMa,oBAAuD,GA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