@airtable/blocks 1.10.2-experimental-640bd10-20220211 → 1.11.1
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/CHANGELOG.md +12 -1
- package/dist/cjs/error_utils.js +9 -34
- package/dist/cjs/models/base.js +15 -0
- package/dist/cjs/models/field.js +99 -4
- package/dist/cjs/models/grouped_record_query_result.js +14 -5
- package/dist/cjs/models/linked_records_query_result.js +44 -86
- package/dist/cjs/models/mutations.js +234 -53
- package/dist/cjs/models/record.js +55 -310
- package/dist/cjs/models/record_query_result.js +1 -4
- package/dist/cjs/models/record_store.js +779 -557
- package/dist/cjs/models/table.js +6 -6
- package/dist/cjs/models/table_or_view_query_result.js +419 -526
- package/dist/cjs/models/view_data_store.js +295 -255
- package/dist/cjs/private_utils.js +0 -40
- package/dist/cjs/sdk.js +2 -12
- package/dist/cjs/testing/abstract_mock_airtable_interface.js +11 -57
- package/dist/cjs/types/airtable_interface.js +2 -17
- package/dist/cjs/types/mutations.js +1 -0
- package/dist/cjs/ui/use_records.js +1 -5
- package/dist/cjs/unstable_testing_utils.js +1 -55
- package/dist/cjs/watchable.js +1 -15
- package/dist/types/src/error_utils.d.ts +4 -2
- package/dist/types/src/error_utils.d.ts.map +1 -1
- package/dist/types/src/models/base.d.ts +10 -0
- package/dist/types/src/models/base.d.ts.map +1 -1
- package/dist/types/src/models/field.d.ts +58 -0
- package/dist/types/src/models/field.d.ts.map +1 -1
- package/dist/types/src/models/grouped_record_query_result.d.ts +3 -3
- package/dist/types/src/models/grouped_record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/linked_records_query_result.d.ts.map +1 -1
- package/dist/types/src/models/mutations.d.ts.map +1 -1
- package/dist/types/src/models/record.d.ts +3 -12
- package/dist/types/src/models/record.d.ts.map +1 -1
- package/dist/types/src/models/record_query_result.d.ts +2 -3
- package/dist/types/src/models/record_query_result.d.ts.map +1 -1
- package/dist/types/src/models/record_store.d.ts.map +1 -1
- package/dist/types/src/models/table_or_view_query_result.d.ts +5 -3
- package/dist/types/src/models/table_or_view_query_result.d.ts.map +1 -1
- package/dist/types/src/models/view_data_store.d.ts +1 -0
- package/dist/types/src/models/view_data_store.d.ts.map +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts +1 -1
- package/dist/types/src/models/view_metadata_query_result.d.ts.map +1 -1
- package/dist/types/src/private_utils.d.ts +1 -24
- package/dist/types/src/private_utils.d.ts.map +1 -1
- package/dist/types/src/sdk.d.ts.map +1 -1
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts +11 -11
- package/dist/types/src/testing/abstract_mock_airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/airtable_interface.d.ts +20 -59
- package/dist/types/src/types/airtable_interface.d.ts.map +1 -1
- package/dist/types/src/types/base.d.ts +1 -0
- package/dist/types/src/types/base.d.ts.map +1 -1
- package/dist/types/src/types/mutations.d.ts +25 -2
- package/dist/types/src/types/mutations.d.ts.map +1 -1
- package/dist/types/src/types/table.d.ts +2 -0
- package/dist/types/src/types/table.d.ts.map +1 -1
- package/dist/types/src/types/view.d.ts +8 -3
- package/dist/types/src/types/view.d.ts.map +1 -1
- package/dist/types/src/ui/record_card.d.ts +1 -1
- package/dist/types/src/unstable_testing_utils.d.ts +1 -4
- package/dist/types/src/unstable_testing_utils.d.ts.map +1 -1
- package/dist/types/src/watchable.d.ts.map +1 -1
- package/dist/types/{src/testing → test/airtable_interface_mocks}/fixture_data.d.ts +19 -42
- package/dist/types/test/airtable_interface_mocks/fixture_data.d.ts.map +1 -0
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts +1 -1
- package/dist/types/test/airtable_interface_mocks/linked_records.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts +12 -19
- package/dist/types/test/airtable_interface_mocks/mock_airtable_interface.d.ts.map +1 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts +1 -1
- package/dist/types/test/airtable_interface_mocks/project_tracker.d.ts.map +1 -1
- package/dist/types/test/test_helpers.d.ts +0 -2
- package/dist/types/test/test_helpers.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/cjs/models/query_manager.js +0 -328
- package/dist/cjs/testing/fixture_data.js +0 -268
- package/dist/cjs/testing/mock_base_data_stores.js +0 -876
- package/dist/cjs/types/block_query_spec.js +0 -85
- package/dist/types/src/models/query_manager.d.ts +0 -2
- package/dist/types/src/models/query_manager.d.ts.map +0 -1
- package/dist/types/src/testing/fixture_data.d.ts.map +0 -1
- package/dist/types/src/testing/mock_base_data_stores.d.ts +0 -55
- package/dist/types/src/testing/mock_base_data_stores.d.ts.map +0 -1
- package/dist/types/src/types/block_query_spec.d.ts +0 -139
- package/dist/types/src/types/block_query_spec.d.ts.map +0 -1
- package/dist/types/test/testing/fixture_data.test.d.ts +0 -2
- package/dist/types/test/testing/fixture_data.test.d.ts.map +0 -1
|
@@ -22,10 +22,6 @@ require("core-js/modules/es.object.to-string");
|
|
|
22
22
|
|
|
23
23
|
require("core-js/modules/es.object.values");
|
|
24
24
|
|
|
25
|
-
require("core-js/modules/es.regexp.constructor");
|
|
26
|
-
|
|
27
|
-
require("core-js/modules/es.regexp.to-string");
|
|
28
|
-
|
|
29
25
|
require("core-js/modules/es.set");
|
|
30
26
|
|
|
31
27
|
require("core-js/modules/es.weak-map");
|
|
@@ -61,7 +57,6 @@ exports.getValueAtOwnPath = getValueAtOwnPath;
|
|
|
61
57
|
exports.arrayDifference = arrayDifference;
|
|
62
58
|
exports.debounce = debounce;
|
|
63
59
|
exports.isBlockDevelopmentRestrictionEnabled = isBlockDevelopmentRestrictionEnabled;
|
|
64
|
-
exports.isFieldId = isFieldId;
|
|
65
60
|
Object.defineProperty(exports, "isDeepEqual", {
|
|
66
61
|
enumerable: true,
|
|
67
62
|
get: function get() {
|
|
@@ -145,16 +140,10 @@ function cast(x) {
|
|
|
145
140
|
return x;
|
|
146
141
|
}
|
|
147
142
|
/**
|
|
148
|
-
* Used to turn a readonly type into a mutable copy: https://stackoverflow.com/a/50769802
|
|
149
|
-
* (used in the cloneDeep function)
|
|
150
|
-
*
|
|
151
143
|
* @hidden
|
|
152
144
|
*/
|
|
153
145
|
|
|
154
146
|
|
|
155
|
-
/**
|
|
156
|
-
* @hidden
|
|
157
|
-
*/
|
|
158
147
|
function cloneDeep(obj) {
|
|
159
148
|
var jsonString = JSON.stringify(obj);
|
|
160
149
|
|
|
@@ -564,33 +553,4 @@ function debounce(fn, timeoutMs) {
|
|
|
564
553
|
|
|
565
554
|
function isBlockDevelopmentRestrictionEnabled() {
|
|
566
555
|
return (0, _airtable_interface.default)().sdkInitData.baseData.isBlockDevelopmentRestrictionEnabled;
|
|
567
|
-
} // This is copied from hyper_id_generator in hyperbase
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Airtable id format. All object ids to have this format:
|
|
571
|
-
* <3 char prefix (lower-case)> + <14 random chars (upper/lower-case & numbers)>
|
|
572
|
-
* e.g. app4iu8QmuwcCbWCE
|
|
573
|
-
*
|
|
574
|
-
* We call it an "objectId" rather than "modelId" because not everything with an id is a model,
|
|
575
|
-
* e.g. worker access tokens.
|
|
576
|
-
*/
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
var ALPHA_NUMERIC_CHAR_PATTERN = '[A-Za-z0-9]';
|
|
580
|
-
var OBJECT_ID_PREFIX_LENGTH = 3; // We allow shorter objectIds because our tests use non-standard AirtableIds
|
|
581
|
-
|
|
582
|
-
var OBJECT_ID_MIN_SUFFIX_LENGTH = 1;
|
|
583
|
-
var OBJECT_ID_SUFFIX_LENGTH = 14;
|
|
584
|
-
var OBJECT_ID_SUFFIX_PATTERN = ALPHA_NUMERIC_CHAR_PATTERN + '{' + OBJECT_ID_MIN_SUFFIX_LENGTH + ',' + OBJECT_ID_SUFFIX_LENGTH + '}';
|
|
585
|
-
var OBJECT_ID_PATTERN = '[a-z]{' + OBJECT_ID_PREFIX_LENGTH + '}' + OBJECT_ID_SUFFIX_PATTERN;
|
|
586
|
-
var OBJECT_ID_REGEX = new RegExp('^' + OBJECT_ID_PATTERN + '$');
|
|
587
|
-
|
|
588
|
-
function _isStringAnObjectId(str) {
|
|
589
|
-
return OBJECT_ID_REGEX.test(str);
|
|
590
|
-
}
|
|
591
|
-
/** @internal */
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
function isFieldId(str) {
|
|
595
|
-
return typeof str === 'string' && _isStringAnObjectId(str) && str.substr(0, 3) === 'fld';
|
|
596
556
|
}
|
package/dist/cjs/sdk.js
CHANGED
|
@@ -45,8 +45,6 @@ var _undo_redo = _interopRequireDefault(require("./undo_redo"));
|
|
|
45
45
|
|
|
46
46
|
var _perform_record_action = require("./perform_record_action");
|
|
47
47
|
|
|
48
|
-
var _query_manager = require("./models/query_manager");
|
|
49
|
-
|
|
50
48
|
/** @hidden */
|
|
51
49
|
|
|
52
50
|
/** */
|
|
@@ -103,12 +101,6 @@ function () {
|
|
|
103
101
|
|
|
104
102
|
/** Represents the current Airtable {@link Base}. */
|
|
105
103
|
|
|
106
|
-
/**
|
|
107
|
-
* Represents active queries and their state
|
|
108
|
-
*
|
|
109
|
-
* @internal
|
|
110
|
-
*/
|
|
111
|
-
|
|
112
104
|
/** Contains information about the current session. */
|
|
113
105
|
|
|
114
106
|
/** @internal */
|
|
@@ -160,7 +152,6 @@ function () {
|
|
|
160
152
|
(0, _defineProperty2.default)(this, "__airtableInterface", void 0);
|
|
161
153
|
(0, _defineProperty2.default)(this, "globalConfig", void 0);
|
|
162
154
|
(0, _defineProperty2.default)(this, "base", void 0);
|
|
163
|
-
(0, _defineProperty2.default)(this, "_queryManager", void 0);
|
|
164
155
|
(0, _defineProperty2.default)(this, "session", void 0);
|
|
165
156
|
(0, _defineProperty2.default)(this, "__mutations", void 0);
|
|
166
157
|
(0, _defineProperty2.default)(this, "installationId", void 0);
|
|
@@ -176,7 +167,6 @@ function () {
|
|
|
176
167
|
var sdkInitData = airtableInterface.sdkInitData;
|
|
177
168
|
this.globalConfig = new _global_config.default(sdkInitData.initialKvValuesByKey, this);
|
|
178
169
|
this.base = new _base.default(this);
|
|
179
|
-
this._queryManager = new _query_manager.QueryManager(this);
|
|
180
170
|
this.installationId = sdkInitData.blockInstallationId; // Bind the public methods on this class so users can import
|
|
181
171
|
// just the method, e.g.
|
|
182
172
|
// import {reload} from '@airtable/blocks';
|
|
@@ -186,7 +176,7 @@ function () {
|
|
|
186
176
|
this.viewport = new _viewport.default(sdkInitData.isFullscreen, airtableInterface);
|
|
187
177
|
this.cursor = new _cursor.default(this);
|
|
188
178
|
this.session = new _session.default(this);
|
|
189
|
-
this.__mutations = new _mutations.default(this, this.session, this.base, updates => this.__applyGlobalConfigUpdates(updates));
|
|
179
|
+
this.__mutations = new _mutations.default(this, this.session, this.base, changes => this.__applyModelChanges(changes), updates => this.__applyGlobalConfigUpdates(updates));
|
|
190
180
|
this.settingsButton = new _settings_button.default(airtableInterface);
|
|
191
181
|
this.undoRedo = new _undo_redo.default(airtableInterface);
|
|
192
182
|
this.performRecordAction = new _perform_record_action.PerformRecordAction(this, airtableInterface);
|
|
@@ -340,4 +330,4 @@ function () {
|
|
|
340
330
|
}();
|
|
341
331
|
|
|
342
332
|
exports.default = BlockSdk;
|
|
343
|
-
(0, _defineProperty2.default)(BlockSdk, "VERSION", "1.
|
|
333
|
+
(0, _defineProperty2.default)(BlockSdk, "VERSION", "1.11.1");
|
|
@@ -4,23 +4,17 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
|
|
5
5
|
require("core-js/modules/es.array.concat");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.array.
|
|
7
|
+
require("core-js/modules/es.array.map");
|
|
8
8
|
|
|
9
9
|
require("core-js/modules/es.object.to-string");
|
|
10
10
|
|
|
11
11
|
require("core-js/modules/es.promise");
|
|
12
12
|
|
|
13
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
14
|
-
|
|
15
13
|
Object.defineProperty(exports, "__esModule", {
|
|
16
14
|
value: true
|
|
17
15
|
});
|
|
18
16
|
exports.AbstractMockAirtableInterface = void 0;
|
|
19
17
|
|
|
20
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
21
|
-
|
|
22
|
-
require("regenerator-runtime/runtime");
|
|
23
|
-
|
|
24
18
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
25
19
|
|
|
26
20
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -161,8 +155,7 @@ var globalConfigHelpers = {
|
|
|
161
155
|
var idGenerator = {
|
|
162
156
|
generateRecordId: () => 'recGeneratedMockId',
|
|
163
157
|
generateFieldId: () => 'fldGeneratedMockId',
|
|
164
|
-
generateTableId: () => 'tblGeneratedMockId'
|
|
165
|
-
generateViewId: () => 'viwGeneratedMockId'
|
|
158
|
+
generateTableId: () => 'tblGeneratedMockId'
|
|
166
159
|
};
|
|
167
160
|
/**
|
|
168
161
|
* An abstract base class with a common interface exposed to both Blocks SDK's
|
|
@@ -221,15 +214,18 @@ function (_EventEmitter) {
|
|
|
221
214
|
};
|
|
222
215
|
}
|
|
223
216
|
}, {
|
|
224
|
-
key: "
|
|
225
|
-
value: function
|
|
217
|
+
key: "createVisList",
|
|
218
|
+
value: function createVisList(appInterface, recordDatas, fieldDatas, sorts) {
|
|
226
219
|
return {
|
|
227
|
-
removeRecordIds(
|
|
220
|
+
removeRecordIds(recordIds) {},
|
|
228
221
|
|
|
229
|
-
|
|
222
|
+
addRecordData(recordData) {},
|
|
230
223
|
|
|
231
224
|
getOrderedRecordIds() {
|
|
232
|
-
return
|
|
225
|
+
return recordDatas.map((_ref) => {
|
|
226
|
+
var id = _ref.id;
|
|
227
|
+
return id;
|
|
228
|
+
});
|
|
233
229
|
}
|
|
234
230
|
|
|
235
231
|
};
|
|
@@ -241,49 +237,7 @@ function (_EventEmitter) {
|
|
|
241
237
|
}
|
|
242
238
|
}, {
|
|
243
239
|
key: "setActiveViewOrTable",
|
|
244
|
-
value: function setActiveViewOrTable(tableId, viewId) {}
|
|
245
|
-
}, {
|
|
246
|
-
key: "subscribeToQueryAndPopulateStoresAsync",
|
|
247
|
-
value: function subscribeToQueryAndPopulateStoresAsync(query, options) {
|
|
248
|
-
return _regenerator.default.async(function subscribeToQueryAndPopulateStoresAsync$(_context) {
|
|
249
|
-
while (1) {
|
|
250
|
-
switch (_context.prev = _context.next) {
|
|
251
|
-
case 0:
|
|
252
|
-
throw (0, _error_utils.spawnError)('subscribeToQueryAndPopulateStoresAsync unimplemented');
|
|
253
|
-
|
|
254
|
-
case 1:
|
|
255
|
-
case "end":
|
|
256
|
-
return _context.stop();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
key: "unsubscribeFromQueryIdsAsync",
|
|
263
|
-
value: function unsubscribeFromQueryIdsAsync(querySpecIds) {
|
|
264
|
-
return _regenerator.default.async(function unsubscribeFromQueryIdsAsync$(_context2) {
|
|
265
|
-
while (1) {
|
|
266
|
-
switch (_context2.prev = _context2.next) {
|
|
267
|
-
case 0:
|
|
268
|
-
throw (0, _error_utils.spawnError)('unsubscribeFromQueryIdsAsync unimplemented');
|
|
269
|
-
|
|
270
|
-
case 1:
|
|
271
|
-
case "end":
|
|
272
|
-
return _context2.stop();
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
}, {
|
|
278
|
-
key: "getTableRecordStoreIfExists",
|
|
279
|
-
value: function getTableRecordStoreIfExists(tableId) {
|
|
280
|
-
throw (0, _error_utils.spawnError)('getTableRecordStoreIfExists unimplemented');
|
|
281
|
-
}
|
|
282
|
-
}, {
|
|
283
|
-
key: "getViewMetadataStoreIfExists",
|
|
284
|
-
value: function getViewMetadataStoreIfExists(tableId, viewId) {
|
|
285
|
-
throw (0, _error_utils.spawnError)('getViewMetadataStoreIfExists unimplemented');
|
|
286
|
-
} // TODO(jugglinmike): Implement
|
|
240
|
+
value: function setActiveViewOrTable(tableId, viewId) {} // TODO(jugglinmike): Implement
|
|
287
241
|
|
|
288
242
|
}, {
|
|
289
243
|
key: "subscribeToGlobalConfigUpdates",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.BlockRunContextType = void 0;
|
|
7
7
|
// BlockRunContextType, BlockInstallationPageBlockRunContext, ViewBlockRunContext, BlockRunContext
|
|
8
8
|
// must be kept in sync with block_run_context.tsx in hyperbase repo
|
|
9
9
|
|
|
@@ -16,19 +16,4 @@ exports.BlockRunContextType = BlockRunContextType;
|
|
|
16
16
|
(function (BlockRunContextType) {
|
|
17
17
|
BlockRunContextType["DASHBOARD_APP"] = "dashboardApp";
|
|
18
18
|
BlockRunContextType["VIEW"] = "view";
|
|
19
|
-
})(BlockRunContextType || (exports.BlockRunContextType = BlockRunContextType = {}));
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Callback priority - SDK priority is called before Block Code priority
|
|
23
|
-
*
|
|
24
|
-
* @hidden
|
|
25
|
-
*/
|
|
26
|
-
var BlockQueryCallbackPriority;
|
|
27
|
-
/** @hidden */
|
|
28
|
-
|
|
29
|
-
exports.BlockQueryCallbackPriority = BlockQueryCallbackPriority;
|
|
30
|
-
|
|
31
|
-
(function (BlockQueryCallbackPriority) {
|
|
32
|
-
BlockQueryCallbackPriority["SDK"] = "sdk";
|
|
33
|
-
BlockQueryCallbackPriority["BLOCK_CODE"] = "blockCode";
|
|
34
|
-
})(BlockQueryCallbackPriority || (exports.BlockQueryCallbackPriority = BlockQueryCallbackPriority = {}));
|
|
19
|
+
})(BlockRunContextType || (exports.BlockRunContextType = BlockRunContextType = {}));
|
|
@@ -18,6 +18,7 @@ var MutationTypes = Object.freeze({
|
|
|
18
18
|
CREATE_SINGLE_FIELD: 'createSingleField',
|
|
19
19
|
UPDATE_SINGLE_FIELD_CONFIG: 'updateSingleFieldConfig',
|
|
20
20
|
UPDATE_SINGLE_FIELD_DESCRIPTION: 'updateSingleFieldDescription',
|
|
21
|
+
UPDATE_SINGLE_FIELD_NAME: 'updateSingleFieldName',
|
|
21
22
|
CREATE_SINGLE_TABLE: 'createSingleTable',
|
|
22
23
|
UPDATE_VIEW_METADATA: 'updateViewMetadata'
|
|
23
24
|
});
|
|
@@ -4,10 +4,6 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
4
4
|
|
|
5
5
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
6
|
|
|
7
|
-
require("core-js/modules/es.array.iterator");
|
|
8
|
-
|
|
9
|
-
require("core-js/modules/web.dom-collections.iterator");
|
|
10
|
-
|
|
11
7
|
Object.defineProperty(exports, "__esModule", {
|
|
12
8
|
value: true
|
|
13
9
|
});
|
|
@@ -108,7 +104,7 @@ function useRecordIds(tableOrViewOrQueryResult, opts) {
|
|
|
108
104
|
var queryResult = _useUnwatchedRecordQueryResult(tableOrViewOrQueryResult, 'useRecordIds', generatedOpts);
|
|
109
105
|
|
|
110
106
|
(0, _use_watchable.default)(queryResult, ['recordIds']);
|
|
111
|
-
return queryResult ?
|
|
107
|
+
return queryResult ? queryResult.recordIds : null;
|
|
112
108
|
}
|
|
113
109
|
/** */
|
|
114
110
|
|
|
@@ -53,36 +53,6 @@ Object.defineProperty(exports, "PartialViewData", {
|
|
|
53
53
|
return _airtable_interface.PartialViewData;
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
|
-
Object.defineProperty(exports, "BlockQuerySubscriptionOptions", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function get() {
|
|
59
|
-
return _airtable_interface.BlockQuerySubscriptionOptions;
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "BlockQuerySpec", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function get() {
|
|
65
|
-
return _block_query_spec.BlockQuerySpec;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(exports, "BlockQueryId", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function get() {
|
|
71
|
-
return _block_query_spec.BlockQueryId;
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(exports, "QuerySpecsResponse", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function get() {
|
|
77
|
-
return _block_query_spec.QuerySpecsResponse;
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(exports, "BlockQuerySubscriptionOnChangeCallback", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function get() {
|
|
83
|
-
return _block_query_spec.BlockQuerySubscriptionOnChangeCallback;
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
56
|
Object.defineProperty(exports, "RecordData", {
|
|
87
57
|
enumerable: true,
|
|
88
58
|
get: function get() {
|
|
@@ -167,24 +137,6 @@ Object.defineProperty(exports, "AbstractMockAirtableInterface", {
|
|
|
167
137
|
return _abstract_mock_airtable_interface.AbstractMockAirtableInterface;
|
|
168
138
|
}
|
|
169
139
|
});
|
|
170
|
-
Object.defineProperty(exports, "FixtureData", {
|
|
171
|
-
enumerable: true,
|
|
172
|
-
get: function get() {
|
|
173
|
-
return _fixture_data.FixtureData;
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
Object.defineProperty(exports, "convertFixtureDataToSdkInitData", {
|
|
177
|
-
enumerable: true,
|
|
178
|
-
get: function get() {
|
|
179
|
-
return _fixture_data.convertFixtureDataToSdkInitData;
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
Object.defineProperty(exports, "MockBaseDataStore", {
|
|
183
|
-
enumerable: true,
|
|
184
|
-
get: function get() {
|
|
185
|
-
return _mock_base_data_stores.MockBaseDataStore;
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
140
|
|
|
189
141
|
var _base = require("./types/base");
|
|
190
142
|
|
|
@@ -192,8 +144,6 @@ var _mutations = require("./types/mutations");
|
|
|
192
144
|
|
|
193
145
|
var _airtable_interface = require("./types/airtable_interface");
|
|
194
146
|
|
|
195
|
-
var _block_query_spec = require("./types/block_query_spec");
|
|
196
|
-
|
|
197
147
|
var _record = require("./types/record");
|
|
198
148
|
|
|
199
149
|
var _cursor = require("./types/cursor");
|
|
@@ -210,8 +160,4 @@ var _backend_fetch_types = require("./types/backend_fetch_types");
|
|
|
210
160
|
|
|
211
161
|
var _sdk = _interopRequireDefault(require("./sdk"));
|
|
212
162
|
|
|
213
|
-
var _abstract_mock_airtable_interface = require("./testing/abstract_mock_airtable_interface");
|
|
214
|
-
|
|
215
|
-
var _fixture_data = require("./testing/fixture_data");
|
|
216
|
-
|
|
217
|
-
var _mock_base_data_stores = require("./testing/mock_base_data_stores");
|
|
163
|
+
var _abstract_mock_airtable_interface = require("./testing/abstract_mock_airtable_interface");
|
package/dist/cjs/watchable.js
CHANGED
|
@@ -84,17 +84,6 @@ function () {
|
|
|
84
84
|
key: "__getWatchableKey",
|
|
85
85
|
value: function __getWatchableKey() {
|
|
86
86
|
return "".concat(this._watchableId, " ").concat(this._changeCount);
|
|
87
|
-
} // See above comment as to why changeCount needs to change when a mutation occurs (useSubscription)
|
|
88
|
-
// So this should be called whenever the model mutably changes
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
93
|
-
|
|
94
|
-
}, {
|
|
95
|
-
key: "__incrementOnChangeCount",
|
|
96
|
-
value: function __incrementOnChangeCount() {
|
|
97
|
-
this._changeCount += 1;
|
|
98
87
|
}
|
|
99
88
|
/**
|
|
100
89
|
* Helper method to get only the valid watchable keys - or throw if a key is invalid
|
|
@@ -220,8 +209,6 @@ function () {
|
|
|
220
209
|
}, {
|
|
221
210
|
key: "unwatch",
|
|
222
211
|
value: function unwatch(keys, callback, context) {
|
|
223
|
-
// We warn instead of throw here because we used to warn instead of throw and don't
|
|
224
|
-
// want to make a breaking change.
|
|
225
212
|
var validKeys = this._getWatchableValidKeysOrThrow(keys, 'unwatch', true);
|
|
226
213
|
|
|
227
214
|
var _iteratorNormalCompletion3 = true;
|
|
@@ -269,8 +256,7 @@ function () {
|
|
|
269
256
|
}, {
|
|
270
257
|
key: "_onChange",
|
|
271
258
|
value: function _onChange(key) {
|
|
272
|
-
this.
|
|
273
|
-
|
|
259
|
+
this._changeCount += 1;
|
|
274
260
|
var watchers = this._changeWatchersByKey[key];
|
|
275
261
|
|
|
276
262
|
if (watchers) {
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare function spawnError(errorMessageFormat: string, ...errorMessageArgs: ReadonlyArray<unknown>): Error;
|
|
5
5
|
/**
|
|
6
|
-
* Logs an error to
|
|
6
|
+
* Logs an error to Sentry
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
9
|
*/
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function logErrorToSentry(errorMessage: string, metadata?: {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}): void;
|
|
11
13
|
/**
|
|
12
14
|
* An alternative to facebook's invariant that's safe to use with base data
|
|
13
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_utils.d.ts","sourceRoot":"","sources":["../../../src/error_utils.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,wBAAgB,UAAU,CACtB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,aAAa,CAAC,OAAO,CAAC,SAO9C;AAGD;;;;GAIG;AACH,wBAAgB,
|
|
1
|
+
{"version":3,"file":"error_utils.d.ts","sourceRoot":"","sources":["../../../src/error_utils.ts"],"names":[],"mappings":"AAsCA;;GAEG;AACH,wBAAgB,UAAU,CACtB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,aAAa,CAAC,OAAO,CAAC,SAO9C;AAGD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE;IAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAC,QAazF;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACrB,SAAS,EAAE,OAAO,EAClB,kBAAkB,EAAE,MAAM,EAC1B,GAAG,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,GACpC,OAAO,CAAC,SAAS,CAQnB"}
|
|
@@ -48,6 +48,16 @@ declare class Base extends AbstractModel<BaseData, WatchableBaseKey> {
|
|
|
48
48
|
* ```
|
|
49
49
|
*/
|
|
50
50
|
get name(): string;
|
|
51
|
+
/**
|
|
52
|
+
* The workspace id of the base.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```js
|
|
56
|
+
* import {base} from '@airtable/blocks';
|
|
57
|
+
* console.log('The workspace id of your base is', base.workspaceId);
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
get workspaceId(): string;
|
|
51
61
|
/**
|
|
52
62
|
* The color of the base.
|
|
53
63
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../src/models/base.ts"],"names":[],"mappings":"AAAA,4CAA4C,CAAC,MAAM;AACnD,OAAO,EAAC,QAAQ,EAAc,MAAM,eAAe,CAAC;AACpD,OAAO,EAAC,gBAAgB,EAAE,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAgB,qBAAqB,EAAC,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAoC,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAGjG,OAAO,KAAK,MAAM,SAAS,CAAC;AAE5B,OAAO,aAAa,MAAM,kBAAkB,CAAC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M,GAAG,OAAO,CAAA;SAAC,GAAG,IAAI,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B,CAAC,GACH,OAAO;IAIV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACG,gBAAgB,CAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,KAAK,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,CAAC,EAAE;YAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAC,GAAG,IAAI,CAAC;QAC1C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC/B,CAAC,GACH,OAAO,CAAC,KAAK,CAAC;IA4BjB;;OAEG;IACH,qBAAqB,IAAI,MAAM;CAsHlC;AAED,eAAe,IAAI,CAAC"}
|
|
@@ -168,6 +168,64 @@ declare class Field extends AbstractModel<FieldData, WatchableFieldKey> {
|
|
|
168
168
|
* ```
|
|
169
169
|
*/
|
|
170
170
|
updateOptionsAsync(options: FieldOptions, opts?: UpdateFieldOptionsOpts): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Checks whether the current user has permission to perform the given name update.
|
|
173
|
+
*
|
|
174
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
175
|
+
*
|
|
176
|
+
* Returns `{hasPermission: true}` if the current user can update the specified field,
|
|
177
|
+
* `{hasPermission: false, reasonDisplayString: string}` otherwise. `reasonDisplayString` may be
|
|
178
|
+
* used to display an error message to the user.
|
|
179
|
+
*
|
|
180
|
+
* @param name new name for the field
|
|
181
|
+
*
|
|
182
|
+
* @example
|
|
183
|
+
* ```js
|
|
184
|
+
* const updateFieldCheckResult = field.checkPermissionsForUpdateName();
|
|
185
|
+
*
|
|
186
|
+
* if (!updateFieldCheckResult.hasPermission) {
|
|
187
|
+
* alert(updateFieldCheckResult.reasonDisplayString);
|
|
188
|
+
* }
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
checkPermissionsForUpdateName(name?: string): PermissionCheckResult;
|
|
192
|
+
/**
|
|
193
|
+
* An alias for `checkPermissionsForUpdateName(options).hasPermission`.
|
|
194
|
+
*
|
|
195
|
+
* Checks whether the current user has permission to perform the name update.
|
|
196
|
+
*
|
|
197
|
+
* Accepts partial input, in the same format as {@link updateNameAsync}.
|
|
198
|
+
*
|
|
199
|
+
* @param name new name for the field
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```js
|
|
203
|
+
* const canUpdateField = field.hasPermissionToUpdateName();
|
|
204
|
+
*
|
|
205
|
+
* if (!canUpdateField) {
|
|
206
|
+
* alert('not allowed!');
|
|
207
|
+
* }
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
hasPermissionToUpdateName(name?: string): boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Updates the name for this field.
|
|
213
|
+
*
|
|
214
|
+
* Throws an error if the user does not have permission to update the field, or if an invalid
|
|
215
|
+
* name is provided.
|
|
216
|
+
*
|
|
217
|
+
* This action is asynchronous. Unlike updates to cell values, updates to field name are
|
|
218
|
+
* **not** applied optimistically locally. You must `await` the returned promise before
|
|
219
|
+
* relying on the change in your app.
|
|
220
|
+
*
|
|
221
|
+
* @param name new name for the field
|
|
222
|
+
*
|
|
223
|
+
* @example
|
|
224
|
+
* ```js
|
|
225
|
+
* await myTextField.updateNameAsync('My New Name');
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
updateNameAsync(name: string): Promise<void>;
|
|
171
229
|
/**
|
|
172
230
|
* Checks whether the current user has permission to perform the given description update.
|
|
173
231
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../../src/models/field.ts"],"names":[],"mappings":"AAAA,6CAA6C,CAAC,MAAM;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,sBAA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,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,qBAAqB;IASxF;;;;;;;;;;;;;;;;;OAiBG;IACH,gCAAgC,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO;IAItE;;;;;;;;;;;;;;;;;;;OAmBG;IACG,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IASvE;;;;;;;;;;;;OAYG;IACH,IAAI,UAAU,IAAI,OAAO,CAGxB;IACD;;;OAGG;IACH,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED;;;;;;;;OAQG;IACH,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAID;;;;;;;OAOG;IACH,IAAI,oBAAoB,IAAI,KAAK,CAAC,UAAU,CAAC,CAU5C;IAID;;;;;;;;;;;;;;;;;OAiBG;IACH,qBAAqB,CAAC,UAAU,EAAE,UAAU,GAAG,aAAa,GAAG,OAAO;IAUtE;;;;;;;;;;;;OAYG;IACH,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;CAwDpD;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -9,7 +9,7 @@ import Field from './field';
|
|
|
9
9
|
/** @hidden */
|
|
10
10
|
interface GroupedRecordQueryResultData {
|
|
11
11
|
groupData: GroupData;
|
|
12
|
-
groupLevels:
|
|
12
|
+
groupLevels: Array<NormalizedGroupLevel>;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* Represents a group of records returned from a group query. See {@link RecordQueryResult} for main
|
|
@@ -22,7 +22,7 @@ interface GroupedRecordQueryResultData {
|
|
|
22
22
|
* @hidden
|
|
23
23
|
*/
|
|
24
24
|
declare class GroupedRecordQueryResult extends RecordQueryResult<GroupedRecordQueryResultData> {
|
|
25
|
-
_orderedRecordIds:
|
|
25
|
+
_orderedRecordIds: Array<RecordId> | null;
|
|
26
26
|
/**
|
|
27
27
|
* Gets children groups of this group (if any exist)
|
|
28
28
|
*/
|
|
@@ -40,7 +40,7 @@ declare class GroupedRecordQueryResult extends RecordQueryResult<GroupedRecordQu
|
|
|
40
40
|
* This returns all recordIds of all children groups (in grouped order).
|
|
41
41
|
* Watchable.
|
|
42
42
|
*/
|
|
43
|
-
get recordIds():
|
|
43
|
+
get recordIds(): Array<RecordId>;
|
|
44
44
|
/**
|
|
45
45
|
* The fields that were used to create the parent RecordQueryResult that created this GroupedRecordQueryResult.
|
|
46
46
|
* This is separate from the field/fieldId property - which is the field this grouping is based upon.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouped_record_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/grouped_record_query_result.ts"],"names":[],"mappings":"AAAA,yDAAyD,CAAC,MAAM;AAChE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,6BAA6B,CAAC;AACjE,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAEhC,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAI5B,cAAc;AAGd,UAAU,4BAA4B;IAClC,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"grouped_record_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/grouped_record_query_result.ts"],"names":[],"mappings":"AAAA,yDAAyD,CAAC,MAAM;AAChE,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,E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AAkB;IAClB,IAAI,YAAY,IAAI,OAAO,CAE1B;CA6BJ;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linked_records_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/linked_records_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"linked_records_query_result.d.ts","sourceRoot":"","sources":["../../../../src/models/linked_records_query_result.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,eAAe,EAAE,aAAa,EAAY,MAAM,kBAAkB,CAAC;AAG3E,OAAO,iBAAiB,EAAE,EACtB,6BAA6B,EAEhC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAG9B,eAAO,MAAM,gBAAgB,0BAM5B,CAAC;AAEF,eAAe;AACf,UAAU,4BAA4B;CAAG;AAEzC;;;;;;;;GAQG;AACH,cAAM,wBAAyB,SAAQ,iBAAiB,CAAC,4BAA4B,CAAC;IA2ElF;;;;;;;;OAQG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAYD;;OAEG;IACH,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM,CAAC,CAS7B;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,CAQ3B;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAIhC;IAED,kBAAkB;IAClB,KAAK,CACD,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAmBvC,kBAAkB;IAClB,OAAO,CACH,IAAI,EAAE,6BAA6B,GAAG,aAAa,CAAC,6BAA6B,CAAC,EAClF,QAAQ,EAAE,eAAe,EACzB,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAC/B,KAAK,CAAC,6BAA6B,CAAC;IAqBvC,kBAAkB;IACZ,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAuEpC;;;;OAIG;IACH,IAAI,SAAS,WAEZ;CAkXJ;AAED,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutations.d.ts","sourceRoot":"","sources":["../../../../src/models/mutations.ts"],"names":[],"mappings":"AAwtBA,eAAe,SAAS,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/** @module @airtable/blocks/models: Record */ /** */
|
|
2
2
|
import { Color } from '../colors';
|
|
3
|
+
import { RecordData } from '../types/record';
|
|
3
4
|
import { FieldId } from '../types/field';
|
|
4
5
|
import { ViewId } from '../types/view';
|
|
5
|
-
import { ObjectValues
|
|
6
|
+
import { ObjectValues } from '../private_utils';
|
|
6
7
|
import AbstractModel from './abstract_model';
|
|
7
8
|
import Field from './field';
|
|
8
9
|
import View from './view';
|
|
@@ -22,12 +23,6 @@ declare const WatchableRecordKeys: Readonly<{
|
|
|
22
23
|
* - `'colorInView:' + someViewId`
|
|
23
24
|
*/
|
|
24
25
|
declare type WatchableRecordKey = ObjectValues<typeof WatchableRecordKeys> | string;
|
|
25
|
-
/**
|
|
26
|
-
* TODO: (#proj-blocks-sdk-record-limits) Record should probably not be an AbstractModel,
|
|
27
|
-
* in the meantime it will return true if it's loaded, throwing/returning null
|
|
28
|
-
* if it's not loaded (returning null / throwing is how AbstractModel works).
|
|
29
|
-
*/
|
|
30
|
-
declare type RecordStoreIsLoaded = true;
|
|
31
26
|
/**
|
|
32
27
|
* Model class representing a record in a table.
|
|
33
28
|
*
|
|
@@ -36,7 +31,7 @@ declare type RecordStoreIsLoaded = true;
|
|
|
36
31
|
*
|
|
37
32
|
* @docsPath models/Record
|
|
38
33
|
*/
|
|
39
|
-
declare class Record extends AbstractModel<
|
|
34
|
+
declare class Record extends AbstractModel<RecordData, WatchableRecordKey> {
|
|
40
35
|
/**
|
|
41
36
|
* Gets the cell value of the given field for this record.
|
|
42
37
|
*
|
|
@@ -177,10 +172,6 @@ declare class Record extends AbstractModel<RecordStoreIsLoaded, WatchableRecordK
|
|
|
177
172
|
* ```
|
|
178
173
|
*/
|
|
179
174
|
get createdTime(): Date;
|
|
180
|
-
/** @inheritdoc */
|
|
181
|
-
watch(keys: WatchableRecordKey | ReadonlyArray<WatchableRecordKey>, callbackForRegistration: FlowAnyFunction, context?: FlowAnyObject | null): Array<WatchableRecordKey>;
|
|
182
|
-
/** @inheritdoc */
|
|
183
|
-
unwatch(keys: WatchableRecordKey | ReadonlyArray<WatchableRecordKey>, callbackForRegistration: FlowAnyFunction, context?: FlowAnyObject | null): Array<WatchableRecordKey>;
|
|
184
175
|
}
|
|
185
176
|
export default Record;
|
|
186
177
|
//# sourceMappingURL=record.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../src/models/record.ts"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MAAM;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../src/models/record.ts"],"names":[],"mappings":"AAAA,8CAA8C,CAAC,MAAM;AACrD,OAAO,EAAC,KAAK,EAAC,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAC,UAAU,EAAW,MAAM,iBAAiB,CAAC;AACrD,OAAO,EAAY,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AACrC,OAAO,EAAwC,YAAY,EAAgB,MAAM,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