@project-ajax/create 0.0.24 → 0.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@project-ajax/create",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Initialize a new Notion Project Ajax extensions repo.",
5
5
  "bin": {
6
6
  "create-ajax": "dist/index.js"
@@ -177,7 +177,7 @@ At the moment, syncs do not run automatically. Use **`exec`** to run a sync.
177
177
 
178
178
  - **`primaryKeyProperty`** (string, required): The name of the property that serves as the unique identifier for each entry in the collection (e.g. `"id"`). This property must also be defined in the schema.
179
179
  - **`schema`** (object, required): Defines the structure of the Notion collection.
180
- - **`dataSourceTitle`** (string, required): The name of the collection that will be created in Notion. Collections are instantiated in the user's sidebar.
180
+ - **`defaultName`** (string, required): The default name for the database when it is first created in Notion. The database will be a new private page. Changing this property after the database has been created will not update the database name.
181
181
  - **`properties`** (object, required): An object mapping property names to their schema definitions. Use functions from `@project-ajax/sdk/schema` to define property types (e.g., `Schema.title()`, `Schema.richText()`).
182
182
  - **`execute`** (function, required): Async function that fetches and returns data to sync.
183
183
  - **Parameters**: None (but can access `process.env` for secrets).
@@ -37,7 +37,7 @@ export const tasksSync = sync({
37
37
  // deleteUnreturnedPages: true,
38
38
 
39
39
  schema: {
40
- dataSourceTitle: "Sample Tasks",
40
+ defaultName: "Sample Tasks",
41
41
  databaseIcon: Builder.notionIcon("checklist"),
42
42
  properties: {
43
43
  "Ticket Title": Schema.title(),