@wix/wix-data-items-common 1.0.101 → 1.0.102
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["../../../src/api/WixDataPatch.ts"],"sourcesContent":["import { WixDataItem, WixDataBulkResult, WixDataPatchOptions } from './types'\n\nexport interface FieldModification {\n fieldPath: string\n action:\n | 'SET_FIELD'\n | 'REMOVE_FIELD'\n | 'INCREMENT_FIELD'\n | 'APPEND_TO_ARRAY'\n | 'REMOVE_FROM_ARRAY'\n actionOptions?: any\n}\n\n/**\n * @builder\n */\nexport interface WixDataBulkPatch {\n /**\n * Refines a patch operation to increment the specified field by the specified value.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is modified.\n * @requiredField
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../src/api/WixDataPatch.ts"],"sourcesContent":["import { WixDataItem, WixDataBulkResult, WixDataPatchOptions } from './types'\n\nexport interface FieldModification {\n fieldPath: string\n action:\n | 'SET_FIELD'\n | 'REMOVE_FIELD'\n | 'INCREMENT_FIELD'\n | 'APPEND_TO_ARRAY'\n | 'REMOVE_FROM_ARRAY'\n actionOptions?: any\n}\n\n/**\n * @builder\n */\nexport interface WixDataBulkPatch {\n /**\n * Refines a patch operation to increment the specified field by the specified value.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is modified.\n * @requiredField field\n * @param by - Value by which to increment the specified field. You can specify positive or negative values.\n * @requiredField by\n * @returns Updated patch.\n */\n incrementField(field: string, by: number): WixDataBulkPatch\n\n /**\n * Refines a patch operation to set the specified field to the specified value.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is set.\n * @requiredField field\n * @param value - Value to set for the specified field.\n * @requiredField value\n * @returns Updated patch.\n */\n setField(field: string, value: any): WixDataBulkPatch\n\n /**\n * Refines a patch operation to append the specified value to the specified array field.\n * @public\n * @documentationMaturity preview\n * @param field - Array field to append the specified value to.\n * @requiredField field\n * @param value - Value to append to the specified array field.\n * @requiredField value\n * @returns Updated patch.\n */\n appendToArray(field: string, value: any): WixDataBulkPatch\n\n /**\n * Refines a patch operation to remove the specified value from the specified array field.\n * @public\n * @documentationMaturity preview\n * @param field - Array field to remove the specified value from.\n * @requiredField field\n * @param value - Value to remove from the specified array field.\n * @requiredField value\n * @returns Updated patch.\n */\n removeFromArray(field: string, value: any): WixDataBulkPatch\n\n /**\n * Refines a patch operation to clear the specified field.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is cleared.\n * @requiredField field\n * @returns Updated patch.\n */\n removeField(field: string): WixDataBulkPatch\n\n /**\n * Runs the bulk patch operation and returns a Promise that resolves to information about the operation results.\n *\n * @public\n * @documentationMaturity preview\n * @returns Bulk operation results.\n */\n run(options?: WixDataPatchOptions): Promise<WixDataBulkResult>\n}\n\n/**\n * @builder\n */\nexport interface WixDataPatch {\n /**\n * Refines a patch operation to increment the specified field by the specified value.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is modified.\n * @requiredField field\n * @param by - Value by which to increment the specified field. You can specify positive or negative values.\n * @requiredField by\n * @returns Updated patch.\n */\n incrementField(field: string, by: number): WixDataPatch\n\n /**\n * Refines a patch operation to set the specified field to the specified value.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is set.\n * @requiredField field\n * @param value - Value to set for the specified field.\n * @requiredField value\n * @returns Updated patch.\n */\n setField(field: string, value: any): WixDataPatch\n\n /**\n * Refines a patch operation to append the specified value to the specified array field.\n * @public\n * @documentationMaturity preview\n * @param field - Array field to append the specified value to.\n * @requiredField field\n * @param value - Value to append to the specified array field.\n * @requiredField value\n * @returns Updated patch.\n */\n appendToArray(field: string, value: any): WixDataPatch\n\n /**\n * Refines a patch operation to remove the specified value from the specified array field.\n * @public\n * @documentationMaturity preview\n * @param field - Array field to remove the specified value from.\n * @requiredField field\n * @param value - Value to remove from the specified array field.\n * @requiredField value\n * @returns Updated patch.\n */\n removeFromArray(field: string, value: any): WixDataPatch\n\n /**\n * Refines a patch operation to clear the specified field.\n * @public\n * @documentationMaturity preview\n * @param field - Field whose value is cleared.\n * @requiredField field\n * @returns Updated patch.\n */\n removeField(field: string): WixDataPatch\n\n /**\n * Runs the patch operation and returns the patched item.\n *\n * The `run()` method returns a Promise that resolves to the patched item and item metadata.\n *\n * @public\n * @documentationMaturity preview\n * @returns Modified data item.\n */\n\n run(options?: WixDataPatchOptions): Promise<WixDataItem | null>\n}\n"],"mappings":""}
|
|
@@ -13,54 +13,54 @@ export interface WixDataBulkPatch {
|
|
|
13
13
|
* @public
|
|
14
14
|
* @documentationMaturity preview
|
|
15
15
|
* @param field - Field whose value is modified.
|
|
16
|
-
* @requiredField
|
|
16
|
+
* @requiredField field
|
|
17
17
|
* @param by - Value by which to increment the specified field. You can specify positive or negative values.
|
|
18
18
|
* @requiredField by
|
|
19
19
|
* @returns Updated patch.
|
|
20
20
|
*/
|
|
21
|
-
incrementField(
|
|
21
|
+
incrementField(field: string, by: number): WixDataBulkPatch;
|
|
22
22
|
/**
|
|
23
23
|
* Refines a patch operation to set the specified field to the specified value.
|
|
24
24
|
* @public
|
|
25
25
|
* @documentationMaturity preview
|
|
26
26
|
* @param field - Field whose value is set.
|
|
27
|
-
* @requiredField
|
|
27
|
+
* @requiredField field
|
|
28
28
|
* @param value - Value to set for the specified field.
|
|
29
29
|
* @requiredField value
|
|
30
30
|
* @returns Updated patch.
|
|
31
31
|
*/
|
|
32
|
-
setField(
|
|
32
|
+
setField(field: string, value: any): WixDataBulkPatch;
|
|
33
33
|
/**
|
|
34
34
|
* Refines a patch operation to append the specified value to the specified array field.
|
|
35
35
|
* @public
|
|
36
36
|
* @documentationMaturity preview
|
|
37
37
|
* @param field - Array field to append the specified value to.
|
|
38
|
-
* @requiredField
|
|
38
|
+
* @requiredField field
|
|
39
39
|
* @param value - Value to append to the specified array field.
|
|
40
40
|
* @requiredField value
|
|
41
41
|
* @returns Updated patch.
|
|
42
42
|
*/
|
|
43
|
-
appendToArray(
|
|
43
|
+
appendToArray(field: string, value: any): WixDataBulkPatch;
|
|
44
44
|
/**
|
|
45
45
|
* Refines a patch operation to remove the specified value from the specified array field.
|
|
46
46
|
* @public
|
|
47
47
|
* @documentationMaturity preview
|
|
48
48
|
* @param field - Array field to remove the specified value from.
|
|
49
|
-
* @requiredField
|
|
49
|
+
* @requiredField field
|
|
50
50
|
* @param value - Value to remove from the specified array field.
|
|
51
51
|
* @requiredField value
|
|
52
52
|
* @returns Updated patch.
|
|
53
53
|
*/
|
|
54
|
-
removeFromArray(
|
|
54
|
+
removeFromArray(field: string, value: any): WixDataBulkPatch;
|
|
55
55
|
/**
|
|
56
56
|
* Refines a patch operation to clear the specified field.
|
|
57
57
|
* @public
|
|
58
58
|
* @documentationMaturity preview
|
|
59
59
|
* @param field - Field whose value is cleared.
|
|
60
|
-
* @requiredField
|
|
60
|
+
* @requiredField field
|
|
61
61
|
* @returns Updated patch.
|
|
62
62
|
*/
|
|
63
|
-
removeField(
|
|
63
|
+
removeField(field: string): WixDataBulkPatch;
|
|
64
64
|
/**
|
|
65
65
|
* Runs the bulk patch operation and returns a Promise that resolves to information about the operation results.
|
|
66
66
|
*
|
|
@@ -79,54 +79,54 @@ export interface WixDataPatch {
|
|
|
79
79
|
* @public
|
|
80
80
|
* @documentationMaturity preview
|
|
81
81
|
* @param field - Field whose value is modified.
|
|
82
|
-
* @requiredField
|
|
82
|
+
* @requiredField field
|
|
83
83
|
* @param by - Value by which to increment the specified field. You can specify positive or negative values.
|
|
84
84
|
* @requiredField by
|
|
85
85
|
* @returns Updated patch.
|
|
86
86
|
*/
|
|
87
|
-
incrementField(
|
|
87
|
+
incrementField(field: string, by: number): WixDataPatch;
|
|
88
88
|
/**
|
|
89
89
|
* Refines a patch operation to set the specified field to the specified value.
|
|
90
90
|
* @public
|
|
91
91
|
* @documentationMaturity preview
|
|
92
92
|
* @param field - Field whose value is set.
|
|
93
|
-
* @requiredField
|
|
93
|
+
* @requiredField field
|
|
94
94
|
* @param value - Value to set for the specified field.
|
|
95
95
|
* @requiredField value
|
|
96
96
|
* @returns Updated patch.
|
|
97
97
|
*/
|
|
98
|
-
setField(
|
|
98
|
+
setField(field: string, value: any): WixDataPatch;
|
|
99
99
|
/**
|
|
100
100
|
* Refines a patch operation to append the specified value to the specified array field.
|
|
101
101
|
* @public
|
|
102
102
|
* @documentationMaturity preview
|
|
103
103
|
* @param field - Array field to append the specified value to.
|
|
104
|
-
* @requiredField
|
|
104
|
+
* @requiredField field
|
|
105
105
|
* @param value - Value to append to the specified array field.
|
|
106
106
|
* @requiredField value
|
|
107
107
|
* @returns Updated patch.
|
|
108
108
|
*/
|
|
109
|
-
appendToArray(
|
|
109
|
+
appendToArray(field: string, value: any): WixDataPatch;
|
|
110
110
|
/**
|
|
111
111
|
* Refines a patch operation to remove the specified value from the specified array field.
|
|
112
112
|
* @public
|
|
113
113
|
* @documentationMaturity preview
|
|
114
114
|
* @param field - Array field to remove the specified value from.
|
|
115
|
-
* @requiredField
|
|
115
|
+
* @requiredField field
|
|
116
116
|
* @param value - Value to remove from the specified array field.
|
|
117
117
|
* @requiredField value
|
|
118
118
|
* @returns Updated patch.
|
|
119
119
|
*/
|
|
120
|
-
removeFromArray(
|
|
120
|
+
removeFromArray(field: string, value: any): WixDataPatch;
|
|
121
121
|
/**
|
|
122
122
|
* Refines a patch operation to clear the specified field.
|
|
123
123
|
* @public
|
|
124
124
|
* @documentationMaturity preview
|
|
125
125
|
* @param field - Field whose value is cleared.
|
|
126
|
-
* @requiredField
|
|
126
|
+
* @requiredField field
|
|
127
127
|
* @returns Updated patch.
|
|
128
128
|
*/
|
|
129
|
-
removeField(
|
|
129
|
+
removeField(field: string): WixDataPatch;
|
|
130
130
|
/**
|
|
131
131
|
* Runs the patch operation and returns the patched item.
|
|
132
132
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WixDataPatch.d.ts","sourceRoot":"","sources":["../../../src/api/WixDataPatch.ts"],"names":[],"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,GAAG,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC/D;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;OASG;IACH,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY,CAAA;IAEvD;;;;;;;;;OASG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,YAAY,CAAA;IAEjD;;;;;;;;;OASG;IACH,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,YAAY,CAAA;IAEtD;;;;;;;;;OASG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,YAAY,CAAA;IAExD;;;;;;;OAOG;IACH,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,CAAA;IAExC;;;;;;;;OAQG;IAEH,GAAG,CAAC,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAChE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/wix-data-items-common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.102",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rimvydas Gimbutas",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"wallaby": {
|
|
86
86
|
"autoDetect": true
|
|
87
87
|
},
|
|
88
|
-
"falconPackageHash": "
|
|
88
|
+
"falconPackageHash": "06d493a40a44bb3e519b72474043d16fffd751c1b4c65f1e558edc19"
|
|
89
89
|
}
|