akeyless-client-commons 1.1.100 → 1.1.101
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.
package/dist/components/index.js
CHANGED
|
@@ -806,8 +806,8 @@ var simpleExtractData = function(doc2) {
|
|
|
806
806
|
});
|
|
807
807
|
};
|
|
808
808
|
var set_document = /*#__PURE__*/ function() {
|
|
809
|
-
var _ref = _async_to_generator(function(collection_path, doc_id, data) {
|
|
810
|
-
var doc_ref, error;
|
|
809
|
+
var _ref = _async_to_generator(function(collection_path, doc_id, data, options) {
|
|
810
|
+
var doc_ref, _options_merge, error;
|
|
811
811
|
return _ts_generator(this, function(_state) {
|
|
812
812
|
switch(_state.label){
|
|
813
813
|
case 0:
|
|
@@ -821,7 +821,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
821
821
|
return [
|
|
822
822
|
4,
|
|
823
823
|
(0, import_firestore2.setDoc)(doc_ref, data, {
|
|
824
|
-
merge: true
|
|
824
|
+
merge: (_options_merge = options === null || options === void 0 ? void 0 : options.merge) !== null && _options_merge !== void 0 ? _options_merge : true
|
|
825
825
|
})
|
|
826
826
|
];
|
|
827
827
|
case 1:
|
|
@@ -847,7 +847,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
847
847
|
}
|
|
848
848
|
});
|
|
849
849
|
});
|
|
850
|
-
return function set_document(collection_path, doc_id, data) {
|
|
850
|
+
return function set_document(collection_path, doc_id, data, options) {
|
|
851
851
|
return _ref.apply(this, arguments);
|
|
852
852
|
};
|
|
853
853
|
}();
|
|
@@ -579,8 +579,8 @@ var simpleExtractData = function(doc2) {
|
|
|
579
579
|
});
|
|
580
580
|
};
|
|
581
581
|
var set_document = /*#__PURE__*/ function() {
|
|
582
|
-
var _ref = _async_to_generator(function(collection_path, doc_id, data) {
|
|
583
|
-
var doc_ref, error;
|
|
582
|
+
var _ref = _async_to_generator(function(collection_path, doc_id, data, options) {
|
|
583
|
+
var doc_ref, _options_merge, error;
|
|
584
584
|
return _ts_generator(this, function(_state) {
|
|
585
585
|
switch(_state.label){
|
|
586
586
|
case 0:
|
|
@@ -594,7 +594,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
594
594
|
return [
|
|
595
595
|
4,
|
|
596
596
|
setDoc(doc_ref, data, {
|
|
597
|
-
merge: true
|
|
597
|
+
merge: (_options_merge = options === null || options === void 0 ? void 0 : options.merge) !== null && _options_merge !== void 0 ? _options_merge : true
|
|
598
598
|
})
|
|
599
599
|
];
|
|
600
600
|
case 1:
|
|
@@ -620,7 +620,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
622
|
});
|
|
623
|
-
return function set_document(collection_path, doc_id, data) {
|
|
623
|
+
return function set_document(collection_path, doc_id, data, options) {
|
|
624
624
|
return _ref.apply(this, arguments);
|
|
625
625
|
};
|
|
626
626
|
}();
|
package/dist/helpers/index.d.mts
CHANGED
|
@@ -133,7 +133,9 @@ declare const extractLocationData: (doc: DocumentSnapshot<DocumentData>) => {
|
|
|
133
133
|
};
|
|
134
134
|
declare const get_all_documents: (collection_path: string) => Promise<TObject<any>[]>;
|
|
135
135
|
declare const get_document_by_id: (collection_path: string, doc_id: string) => Promise<TObject<any>>;
|
|
136
|
-
declare const set_document: (collection_path: string, doc_id: string, data: DocumentData
|
|
136
|
+
declare const set_document: (collection_path: string, doc_id: string, data: DocumentData, options?: {
|
|
137
|
+
merge?: boolean;
|
|
138
|
+
}) => Promise<boolean>;
|
|
137
139
|
declare const add_document: (collection_path: string, data: DocumentData, include_id?: boolean) => Promise<boolean>;
|
|
138
140
|
declare const delete_document: (collection_path: string, doc_id: string) => Promise<boolean>;
|
|
139
141
|
declare const query_document: (collection_path: string, field_name: string, operator: WhereFilterOp, value: any, ignore_log?: boolean) => Promise<null | TObject<any>>;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -133,7 +133,9 @@ declare const extractLocationData: (doc: DocumentSnapshot<DocumentData>) => {
|
|
|
133
133
|
};
|
|
134
134
|
declare const get_all_documents: (collection_path: string) => Promise<TObject<any>[]>;
|
|
135
135
|
declare const get_document_by_id: (collection_path: string, doc_id: string) => Promise<TObject<any>>;
|
|
136
|
-
declare const set_document: (collection_path: string, doc_id: string, data: DocumentData
|
|
136
|
+
declare const set_document: (collection_path: string, doc_id: string, data: DocumentData, options?: {
|
|
137
|
+
merge?: boolean;
|
|
138
|
+
}) => Promise<boolean>;
|
|
137
139
|
declare const add_document: (collection_path: string, data: DocumentData, include_id?: boolean) => Promise<boolean>;
|
|
138
140
|
declare const delete_document: (collection_path: string, doc_id: string) => Promise<boolean>;
|
|
139
141
|
declare const query_document: (collection_path: string, field_name: string, operator: WhereFilterOp, value: any, ignore_log?: boolean) => Promise<null | TObject<any>>;
|
package/dist/helpers/index.js
CHANGED
|
@@ -1264,8 +1264,8 @@ var get_document_by_id = /*#__PURE__*/ function() {
|
|
|
1264
1264
|
};
|
|
1265
1265
|
}();
|
|
1266
1266
|
var set_document = /*#__PURE__*/ function() {
|
|
1267
|
-
var _ref = _async_to_generator(function(collection_path, doc_id, data) {
|
|
1268
|
-
var doc_ref, error;
|
|
1267
|
+
var _ref = _async_to_generator(function(collection_path, doc_id, data, options) {
|
|
1268
|
+
var doc_ref, _options_merge, error;
|
|
1269
1269
|
return _ts_generator(this, function(_state) {
|
|
1270
1270
|
switch(_state.label){
|
|
1271
1271
|
case 0:
|
|
@@ -1279,7 +1279,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
1279
1279
|
return [
|
|
1280
1280
|
4,
|
|
1281
1281
|
(0, import_firestore2.setDoc)(doc_ref, data, {
|
|
1282
|
-
merge: true
|
|
1282
|
+
merge: (_options_merge = options === null || options === void 0 ? void 0 : options.merge) !== null && _options_merge !== void 0 ? _options_merge : true
|
|
1283
1283
|
})
|
|
1284
1284
|
];
|
|
1285
1285
|
case 1:
|
|
@@ -1305,7 +1305,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
});
|
|
1307
1307
|
});
|
|
1308
|
-
return function set_document(collection_path, doc_id, data) {
|
|
1308
|
+
return function set_document(collection_path, doc_id, data, options) {
|
|
1309
1309
|
return _ref.apply(this, arguments);
|
|
1310
1310
|
};
|
|
1311
1311
|
}();
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -874,8 +874,8 @@ var get_document_by_id = /*#__PURE__*/ function() {
|
|
|
874
874
|
};
|
|
875
875
|
}();
|
|
876
876
|
var set_document = /*#__PURE__*/ function() {
|
|
877
|
-
var _ref = _async_to_generator(function(collection_path, doc_id, data) {
|
|
878
|
-
var doc_ref, error;
|
|
877
|
+
var _ref = _async_to_generator(function(collection_path, doc_id, data, options) {
|
|
878
|
+
var doc_ref, _options_merge, error;
|
|
879
879
|
return _ts_generator(this, function(_state) {
|
|
880
880
|
switch(_state.label){
|
|
881
881
|
case 0:
|
|
@@ -889,7 +889,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
889
889
|
return [
|
|
890
890
|
4,
|
|
891
891
|
setDoc(doc_ref, data, {
|
|
892
|
-
merge: true
|
|
892
|
+
merge: (_options_merge = options === null || options === void 0 ? void 0 : options.merge) !== null && _options_merge !== void 0 ? _options_merge : true
|
|
893
893
|
})
|
|
894
894
|
];
|
|
895
895
|
case 1:
|
|
@@ -915,7 +915,7 @@ var set_document = /*#__PURE__*/ function() {
|
|
|
915
915
|
}
|
|
916
916
|
});
|
|
917
917
|
});
|
|
918
|
-
return function set_document(collection_path, doc_id, data) {
|
|
918
|
+
return function set_document(collection_path, doc_id, data, options) {
|
|
919
919
|
return _ref.apply(this, arguments);
|
|
920
920
|
};
|
|
921
921
|
}();
|