@webda/gcp 4.0.0-beta.1 → 4.0.0-beta.2

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 (44) hide show
  1. package/lib/index.d.ts +1 -0
  2. package/lib/index.d.ts.map +1 -0
  3. package/lib/index.spec.d.ts +1 -0
  4. package/lib/index.spec.d.ts.map +1 -0
  5. package/lib/services/firestore.d.ts +1 -0
  6. package/lib/services/firestore.d.ts.map +1 -0
  7. package/lib/services/firestore.js +9 -10
  8. package/lib/services/firestore.js.map +1 -1
  9. package/lib/services/firestore.spec.d.ts +1 -0
  10. package/lib/services/firestore.spec.d.ts.map +1 -0
  11. package/lib/services/firestore.spec.js +21 -28
  12. package/lib/services/firestore.spec.js.map +1 -1
  13. package/lib/services/index.d.ts +1 -0
  14. package/lib/services/index.d.ts.map +1 -0
  15. package/lib/services/kms.d.ts +1 -0
  16. package/lib/services/kms.d.ts.map +1 -0
  17. package/lib/services/kms.spec.d.ts +1 -0
  18. package/lib/services/kms.spec.d.ts.map +1 -0
  19. package/lib/services/kms.spec.js +3 -3
  20. package/lib/services/kms.spec.js.map +1 -1
  21. package/lib/services/pubsub.d.ts +1 -0
  22. package/lib/services/pubsub.d.ts.map +1 -0
  23. package/lib/services/pubsub.spec.d.ts +1 -0
  24. package/lib/services/pubsub.spec.d.ts.map +1 -0
  25. package/lib/services/pubsub.spec.js +4 -4
  26. package/lib/services/pubsub.spec.js.map +1 -1
  27. package/lib/services/queue.d.ts +2 -0
  28. package/lib/services/queue.d.ts.map +1 -0
  29. package/lib/services/queue.js +4 -8
  30. package/lib/services/queue.js.map +1 -1
  31. package/lib/services/queue.spec.d.ts +1 -0
  32. package/lib/services/queue.spec.d.ts.map +1 -0
  33. package/lib/services/queue.spec.js +20 -7
  34. package/lib/services/queue.spec.js.map +1 -1
  35. package/lib/services/storage.d.ts +2 -1
  36. package/lib/services/storage.d.ts.map +1 -0
  37. package/lib/services/storage.js +13 -13
  38. package/lib/services/storage.js.map +1 -1
  39. package/lib/services/storage.spec.d.ts +1 -0
  40. package/lib/services/storage.spec.d.ts.map +1 -0
  41. package/lib/services/storage.spec.js +37 -33
  42. package/lib/services/storage.spec.js.map +1 -1
  43. package/package.json +17 -13
  44. package/webda.module.json +81 -105
package/webda.module.json CHANGED
@@ -80,15 +80,6 @@
80
80
  "description": "Additional models\n\nAllow this store to manage other models",
81
81
  "default": []
82
82
  },
83
- "asyncDelete": {
84
- "type": "boolean",
85
- "description": "async delete"
86
- },
87
- "expose": {
88
- "$ref": "#/definitions/StoreExposeParameters",
89
- "description": "Expose the service to an urls",
90
- "deprecated": "will probably be removed in 4.0 in favor of Expose annotation"
91
- },
92
83
  "strict": {
93
84
  "type": "boolean",
94
85
  "description": "Allow to load object that does not have the type data\n\nIf set to true, then the Store will only managed the defined _model and no model extending this one",
@@ -137,7 +128,6 @@
137
128
  }
138
129
  },
139
130
  "required": [
140
- "asyncDelete",
141
131
  "collection",
142
132
  "compoundIndexes",
143
133
  "slowQueryThreshold",
@@ -146,53 +136,6 @@
146
136
  "description": "Firebase parameters",
147
137
  "$schema": "http://json-schema.org/draft-07/schema#",
148
138
  "definitions": {
149
- "StoreExposeParameters": {
150
- "type": "object",
151
- "properties": {
152
- "url": {
153
- "type": "string",
154
- "description": "URL endpoint to use to expose REST Resources API",
155
- "default": "service.getName().toLowerCase()"
156
- },
157
- "restrict": {
158
- "type": "object",
159
- "properties": {
160
- "create": {
161
- "type": "boolean",
162
- "description": "Do not expose the POST"
163
- },
164
- "update": {
165
- "type": "boolean",
166
- "description": "Do not expose the PUT and PATCH"
167
- },
168
- "get": {
169
- "type": "boolean",
170
- "description": "Do not expose the GET"
171
- },
172
- "delete": {
173
- "type": "boolean",
174
- "description": "Do not expose the DELETE"
175
- },
176
- "query": {
177
- "type": "boolean",
178
- "description": "Do not expose the query endpoint"
179
- }
180
- },
181
- "description": "You can restrict any part of the CRUD",
182
- "default": {}
183
- },
184
- "queryMethod": {
185
- "type": "string",
186
- "enum": [
187
- "PUT",
188
- "GET"
189
- ],
190
- "description": "For confidentiality sometimes you might prefer to expose query through PUT To avoid GET logging",
191
- "default": "GET"
192
- }
193
- },
194
- "deprecated": "Store should not be exposed directly anymore\nYou should use the DomainService instead"
195
- },
196
139
  "FireStoreIndex": {
197
140
  "type": "object",
198
141
  "additionalProperties": {
@@ -683,6 +626,13 @@
683
626
  "null"
684
627
  ],
685
628
  "description": "AvroConfig writeMetadata"
629
+ },
630
+ "useTopicSchema": {
631
+ "type": [
632
+ "boolean",
633
+ "null"
634
+ ],
635
+ "description": "AvroConfig useTopicSchema"
686
636
  }
687
637
  },
688
638
  "description": "Properties of an AvroConfig."
@@ -786,6 +736,42 @@
786
736
  ],
787
737
  "description": "CloudStorageConfig maxBytes"
788
738
  },
739
+ "maxMessages": {
740
+ "anyOf": [
741
+ {
742
+ "type": "number"
743
+ },
744
+ {
745
+ "type": "object",
746
+ "properties": {
747
+ "high": {
748
+ "type": "number",
749
+ "description": "The high 32 bits as a signed value."
750
+ },
751
+ "low": {
752
+ "type": "number",
753
+ "description": "The low 32 bits as a signed value."
754
+ },
755
+ "unsigned": {
756
+ "type": "boolean",
757
+ "description": "Whether unsigned or not."
758
+ }
759
+ },
760
+ "required": [
761
+ "high",
762
+ "low",
763
+ "unsigned"
764
+ ]
765
+ },
766
+ {
767
+ "type": "string"
768
+ },
769
+ {
770
+ "type": "null"
771
+ }
772
+ ],
773
+ "description": "CloudStorageConfig maxMessages"
774
+ },
789
775
  "state": {
790
776
  "anyOf": [
791
777
  {
@@ -811,6 +797,10 @@
811
797
  "type": "string",
812
798
  "const": "IN_TRANSIT_LOCATION_RESTRICTION"
813
799
  },
800
+ {
801
+ "type": "string",
802
+ "const": "SCHEMA_MISMATCH"
803
+ },
814
804
  {
815
805
  "type": "null"
816
806
  }
@@ -1196,6 +1186,34 @@
1196
1186
  ],
1197
1187
  "description": "Subscription state"
1198
1188
  },
1189
+ "analyticsHubSubscriptionInfo": {
1190
+ "anyOf": [
1191
+ {
1192
+ "type": "object",
1193
+ "properties": {
1194
+ "listing": {
1195
+ "type": [
1196
+ "string",
1197
+ "null"
1198
+ ],
1199
+ "description": "AnalyticsHubSubscriptionInfo listing"
1200
+ },
1201
+ "subscription": {
1202
+ "type": [
1203
+ "string",
1204
+ "null"
1205
+ ],
1206
+ "description": "AnalyticsHubSubscriptionInfo subscription"
1207
+ }
1208
+ },
1209
+ "description": "Properties of an AnalyticsHubSubscriptionInfo."
1210
+ },
1211
+ {
1212
+ "type": "null"
1213
+ }
1214
+ ],
1215
+ "description": "Subscription analyticsHubSubscriptionInfo"
1216
+ },
1199
1217
  "messageRetentionDuration": {
1200
1218
  "anyOf": [
1201
1219
  {
@@ -1338,7 +1356,8 @@
1338
1356
  1,
1339
1357
  2,
1340
1358
  3,
1341
- 4
1359
+ 4,
1360
+ 5
1342
1361
  ],
1343
1362
  "description": "State enum."
1344
1363
  },
@@ -1460,17 +1479,6 @@
1460
1479
  "type": "string",
1461
1480
  "description": "URL on which to serve the content"
1462
1481
  },
1463
- "map": {
1464
- "type": "object",
1465
- "additionalProperties": {
1466
- "type": "array",
1467
- "items": {
1468
- "type": "string"
1469
- }
1470
- },
1471
- "description": "Define the map to Object collection\n\nkey is a Store name the string[] represent all valids attributes to store files in",
1472
- "deprecated": true
1473
- },
1474
1482
  "models": {
1475
1483
  "type": "object",
1476
1484
  "additionalProperties": {
@@ -1481,41 +1489,10 @@
1481
1489
  },
1482
1490
  "description": "Define the map of models\n* indicates all models\n\nkey is a Store name the string[] represent all valids attributes to store files in * indicates all attributes"
1483
1491
  },
1484
- "expose": {
1485
- "type": "object",
1486
- "properties": {
1487
- "url": {
1488
- "type": "string",
1489
- "description": "URL to expose the service to"
1490
- },
1491
- "restrict": {
1492
- "type": "object",
1493
- "properties": {
1494
- "get": {
1495
- "type": "boolean",
1496
- "description": "Restrict GET"
1497
- },
1498
- "create": {
1499
- "type": "boolean",
1500
- "description": "Restrict POST"
1501
- },
1502
- "delete": {
1503
- "type": "boolean",
1504
- "description": "Restrict DELETE"
1505
- },
1506
- "metadata": {
1507
- "type": "boolean",
1508
- "description": "Restrict update of metadata"
1509
- }
1510
- },
1511
- "description": "Restrict some APIs"
1512
- }
1513
- },
1514
- "required": [
1515
- "url"
1516
- ],
1517
- "description": "Expose the service to http",
1518
- "deprecated": "will be removed in 4.0"
1492
+ "maxFileSize": {
1493
+ "type": "number",
1494
+ "description": "Define the maximum filesize to accept as direct upload",
1495
+ "default": "10*1024*1024"
1519
1496
  },
1520
1497
  "prefix": {
1521
1498
  "type": "string"
@@ -1534,7 +1511,6 @@
1534
1511
  },
1535
1512
  "required": [
1536
1513
  "bucket",
1537
- "map",
1538
1514
  "models",
1539
1515
  "type"
1540
1516
  ],