@payloadcms/drizzle 4.0.0-internal.e16cf59 → 4.0.0-internal.fa345ef

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 (145) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/createTableName.d.ts.map +1 -1
  3. package/dist/exports/postgres.d.ts +1 -0
  4. package/dist/exports/postgres.d.ts.map +1 -1
  5. package/dist/exports/postgres.js +1 -0
  6. package/dist/exports/postgres.js.map +1 -1
  7. package/dist/exports/sqlite.d.ts +1 -0
  8. package/dist/exports/sqlite.d.ts.map +1 -1
  9. package/dist/exports/sqlite.js +1 -0
  10. package/dist/exports/sqlite.js.map +1 -1
  11. package/dist/find/buildFindManyArgs.d.ts.map +1 -1
  12. package/dist/find/findMany.d.ts.map +1 -1
  13. package/dist/find/traverseFields.d.ts.map +1 -1
  14. package/dist/find/traverseFields.js +1 -2
  15. package/dist/find/traverseFields.js.map +1 -1
  16. package/dist/index.d.ts +1 -2
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +0 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/postgres/createDatabase.d.ts.map +1 -1
  21. package/dist/postgres/createExtensions.d.ts.map +1 -1
  22. package/dist/postgres/createJSONQuery/index.d.ts.map +1 -1
  23. package/dist/postgres/predefinedMigrations/localize-status/index.d.ts +11 -0
  24. package/dist/postgres/predefinedMigrations/localize-status/index.d.ts.map +1 -0
  25. package/dist/postgres/predefinedMigrations/localize-status/index.js +296 -0
  26. package/dist/postgres/predefinedMigrations/localize-status/index.js.map +1 -0
  27. package/dist/postgres/predefinedMigrations/localize-status/migrateMainCollection.d.ts +13 -0
  28. package/dist/postgres/predefinedMigrations/localize-status/migrateMainCollection.d.ts.map +1 -0
  29. package/dist/postgres/predefinedMigrations/localize-status/migrateMainCollection.js +51 -0
  30. package/dist/postgres/predefinedMigrations/localize-status/migrateMainCollection.js.map +1 -0
  31. package/dist/postgres/predefinedMigrations/localize-status/migrateMainGlobal.d.ts +13 -0
  32. package/dist/postgres/predefinedMigrations/localize-status/migrateMainGlobal.d.ts.map +1 -0
  33. package/dist/postgres/predefinedMigrations/localize-status/migrateMainGlobal.js +54 -0
  34. package/dist/postgres/predefinedMigrations/localize-status/migrateMainGlobal.js.map +1 -0
  35. package/dist/postgres/predefinedMigrations/v2-v3/fetchAndResave/index.d.ts.map +1 -1
  36. package/dist/postgres/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.d.ts.map +1 -1
  37. package/dist/postgres/predefinedMigrations/v2-v3/fetchAndResave/traverseFields.js.map +1 -1
  38. package/dist/postgres/predefinedMigrations/v2-v3/groupUpSQLStatements.d.ts.map +1 -1
  39. package/dist/postgres/predefinedMigrations/v2-v3/index.d.ts.map +1 -1
  40. package/dist/postgres/predefinedMigrations/v2-v3/migrateRelationships.d.ts.map +1 -1
  41. package/dist/postgres/predefinedMigrations/v2-v3/traverseFields.d.ts.map +1 -1
  42. package/dist/postgres/schema/buildDrizzleTable.d.ts.map +1 -1
  43. package/dist/postgres/schema/geometryColumn.d.ts.map +1 -1
  44. package/dist/queries/addJoinTable.d.ts.map +1 -1
  45. package/dist/queries/buildOrderBy.d.ts.map +1 -1
  46. package/dist/queries/buildQuery.d.ts.map +1 -1
  47. package/dist/queries/getTableAlias.d.ts.map +1 -1
  48. package/dist/queries/getTableColumnFromPath.d.ts.map +1 -1
  49. package/dist/queries/getTableColumnFromPath.js +2 -2
  50. package/dist/queries/getTableColumnFromPath.js.map +1 -1
  51. package/dist/queries/sanitizeQueryValue.d.ts.map +1 -1
  52. package/dist/queries/selectDistinct.d.ts.map +1 -1
  53. package/dist/schema/build.d.ts.map +1 -1
  54. package/dist/schema/buildDrizzleRelations.d.ts.map +1 -1
  55. package/dist/schema/buildRawSchema.d.ts.map +1 -1
  56. package/dist/schema/idToUUID.d.ts.map +1 -1
  57. package/dist/schema/traverseFields.d.ts.map +1 -1
  58. package/dist/schema/traverseFields.js +1 -1
  59. package/dist/schema/traverseFields.js.map +1 -1
  60. package/dist/schema/withDefault.d.ts.map +1 -1
  61. package/dist/sqlite/createJSONQuery/convertPathToJSONTraversal.d.ts.map +1 -1
  62. package/dist/sqlite/createJSONQuery/index.d.ts.map +1 -1
  63. package/dist/sqlite/predefinedMigrations/localize-status/index.d.ts +28 -0
  64. package/dist/sqlite/predefinedMigrations/localize-status/index.d.ts.map +1 -0
  65. package/dist/sqlite/predefinedMigrations/localize-status/index.js +198 -0
  66. package/dist/sqlite/predefinedMigrations/localize-status/index.js.map +1 -0
  67. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainCollection.d.ts +12 -0
  68. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainCollection.d.ts.map +1 -0
  69. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainCollection.js +24 -0
  70. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainCollection.js.map +1 -0
  71. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainGlobal.d.ts +12 -0
  72. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainGlobal.d.ts.map +1 -0
  73. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainGlobal.js +28 -0
  74. package/dist/sqlite/predefinedMigrations/localize-status/migrateMainGlobal.js.map +1 -0
  75. package/dist/transform/read/hasManyNumber.d.ts.map +1 -1
  76. package/dist/transform/read/hasManyText.d.ts.map +1 -1
  77. package/dist/transform/read/index.d.ts.map +1 -1
  78. package/dist/transform/read/relationship.d.ts.map +1 -1
  79. package/dist/transform/read/traverseFields.d.ts.map +1 -1
  80. package/dist/transform/read/traverseFields.js +2 -2
  81. package/dist/transform/read/traverseFields.js.map +1 -1
  82. package/dist/transform/write/array.d.ts.map +1 -1
  83. package/dist/transform/write/blocks.d.ts.map +1 -1
  84. package/dist/transform/write/blocks.js +1 -1
  85. package/dist/transform/write/blocks.js.map +1 -1
  86. package/dist/transform/write/index.d.ts.map +1 -1
  87. package/dist/transform/write/numbers.d.ts.map +1 -1
  88. package/dist/transform/write/relationships.d.ts.map +1 -1
  89. package/dist/transform/write/selects.d.ts.map +1 -1
  90. package/dist/transform/write/texts.d.ts.map +1 -1
  91. package/dist/transform/write/traverseFields.d.ts.map +1 -1
  92. package/dist/transform/write/traverseFields.js +1 -2
  93. package/dist/transform/write/traverseFields.js.map +1 -1
  94. package/dist/types.d.ts +0 -4
  95. package/dist/types.d.ts.map +1 -1
  96. package/dist/types.js +1 -3
  97. package/dist/types.js.map +1 -1
  98. package/dist/upsertRow/deleteExistingArrayRows.d.ts.map +1 -1
  99. package/dist/upsertRow/deleteExistingRowsByPath.d.ts.map +1 -1
  100. package/dist/upsertRow/handleUpsertError.d.ts.map +1 -1
  101. package/dist/upsertRow/handleUpsertError.js +2 -1
  102. package/dist/upsertRow/handleUpsertError.js.map +1 -1
  103. package/dist/upsertRow/handleUpsertError.spec.js +42 -0
  104. package/dist/upsertRow/handleUpsertError.spec.js.map +1 -0
  105. package/dist/upsertRow/index.d.ts.map +1 -1
  106. package/dist/upsertRow/index.js +5 -2
  107. package/dist/upsertRow/index.js.map +1 -1
  108. package/dist/upsertRow/insertArrays.d.ts.map +1 -1
  109. package/dist/upsertRow/shouldUseOptimizedUpsertRow.d.ts.map +1 -1
  110. package/dist/utilities/appendPrefixToKeys.d.ts.map +1 -1
  111. package/dist/utilities/blocksToJsonMigrator.d.ts.map +1 -1
  112. package/dist/utilities/buildCreateMigration.d.ts.map +1 -1
  113. package/dist/utilities/buildForeignKeyName.d.ts.map +1 -1
  114. package/dist/utilities/buildIndexName.d.ts.map +1 -1
  115. package/dist/utilities/createBlocksMap.d.ts.map +1 -1
  116. package/dist/utilities/createRelationshipMap.d.ts.map +1 -1
  117. package/dist/utilities/createSchemaGenerator.d.ts.map +1 -1
  118. package/dist/utilities/escapeSQLValue.d.ts.map +1 -1
  119. package/dist/utilities/executeSchemaHooks.d.ts.map +1 -1
  120. package/dist/utilities/extendDrizzleTable.d.ts.map +1 -1
  121. package/dist/utilities/getArrayRelationName.d.ts.map +1 -1
  122. package/dist/utilities/getCollectionIdType.d.ts.map +1 -1
  123. package/dist/utilities/getMigrationTemplate.d.ts.map +1 -1
  124. package/dist/utilities/getNameFromDrizzleTable.d.ts.map +1 -1
  125. package/dist/utilities/getPrimaryDb.d.ts.map +1 -1
  126. package/dist/utilities/getTransaction.d.ts.map +1 -1
  127. package/dist/utilities/hasLocalesTable.d.ts.map +1 -1
  128. package/dist/utilities/isPolymorphicRelationship.d.ts.map +1 -1
  129. package/dist/utilities/isUUIDType.d.ts.map +1 -1
  130. package/dist/utilities/json.d.ts.map +1 -1
  131. package/dist/utilities/migrationTableExists.d.ts.map +1 -1
  132. package/dist/utilities/parseError.d.ts.map +1 -1
  133. package/dist/utilities/pushDevSchema.d.ts.map +1 -1
  134. package/dist/utilities/rawConstraint.d.ts.map +1 -1
  135. package/dist/utilities/sanitizePathSegment.d.ts.map +1 -1
  136. package/dist/utilities/validateExistingBlockIsIdentical.d.ts.map +1 -1
  137. package/package.json +4 -9
  138. package/dist/exports/types-deprecated.d.ts +0 -150
  139. package/dist/exports/types-deprecated.d.ts.map +0 -1
  140. package/dist/exports/types-deprecated.js +0 -5
  141. package/dist/exports/types-deprecated.js.map +0 -1
  142. package/dist/find/chainMethods.d.ts +0 -20
  143. package/dist/find/chainMethods.d.ts.map +0 -1
  144. package/dist/find/chainMethods.js +0 -16
  145. package/dist/find/chainMethods.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"types-deprecated.d.ts","sourceRoot":"","sources":["../../src/exports/types-deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,IAAI,cAAc,EAC/B,iBAAiB,IAAI,kBAAkB,EACvC,qBAAqB,IAAI,sBAAsB,EAC/C,cAAc,IAAI,eAAe,EACjC,qBAAqB,IAAI,sBAAsB,EAC/C,aAAa,IAAI,cAAc,EAC/B,mBAAmB,IAAI,oBAAoB,EAC3C,WAAW,IAAI,YAAY,EAC3B,cAAc,IAAI,eAAe,EACjC,kB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G,kBAAkB,CAAA;AAClD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAA;AACtC;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAA;AAChC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,CAAA;AACpD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAC1C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAA;AAClD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAC1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA"}
@@ -1,5 +0,0 @@
1
- /**
2
- * @deprecated - import from `@payloadcms/drizzle` instead
3
- */ export { };
4
-
5
- //# sourceMappingURL=types-deprecated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/exports/types-deprecated.ts"],"sourcesContent":["import type {\n BaseRawColumn as _BaseRawColumn,\n BuildDrizzleTable as _BuildDrizzleTable,\n BuildQueryJoinAliases as _BuildQueryJoinAliases,\n ChainedMethods as _ChainedMethods,\n ColumnToCodeConverter as _ColumnToCodeConverter,\n CountDistinct as _CountDistinct,\n CreateJSONQueryArgs as _CreateJSONQueryArgs,\n DeleteWhere as _DeleteWhere,\n DrizzleAdapter as _DrizzleAdapter,\n DrizzleTransaction as _DrizzleTransaction,\n DropDatabase as _DropDatabase,\n EnumRawColumn as _EnumRawColumn,\n Execute as _Execute,\n GenericColumn as _GenericColumn,\n GenericColumns as _GenericColumns,\n GenericPgColumn as _GenericPgColumn,\n GenericRelation as _GenericRelation,\n GenericTable as _GenericTable,\n IDType as _IDType,\n Insert as _Insert,\n IntegerRawColumn as _IntegerRawColumn,\n Migration as _Migration,\n PostgresDB as _PostgresDB,\n RawColumn as _RawColumn,\n RawForeignKey as _RawForeignKey,\n RawIndex as _RawIndex,\n RawRelation as _RawRelation,\n RawTable as _RawTable,\n RelationMap as _RelationMap,\n RequireDrizzleKit as _RequireDrizzleKit,\n SetColumnID as _SetColumnID,\n SQLiteDB as _SQLiteDB,\n TimestampRawColumn as _TimestampRawColumn,\n TransactionPg as _TransactionPg,\n TransactionSQLite as _TransactionSQLite,\n UUIDRawColumn as _UUIDRawColumn,\n VectorRawColumn as _VectorRawColumn,\n} from '../types.js'\n\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type BaseRawColumn = _BaseRawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type BuildDrizzleTable = _BuildDrizzleTable\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type BuildQueryJoinAliases = _BuildQueryJoinAliases\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type ChainedMethods = _ChainedMethods\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type ColumnToCodeConverter = _ColumnToCodeConverter\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type CountDistinct = _CountDistinct\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type CreateJSONQueryArgs = _CreateJSONQueryArgs\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type DeleteWhere = _DeleteWhere\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type DrizzleAdapter = _DrizzleAdapter\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type DrizzleTransaction = _DrizzleTransaction\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type DropDatabase = _DropDatabase\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type EnumRawColumn = _EnumRawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type Execute<T> = _Execute<T>\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type GenericColumn = _GenericColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type GenericColumns<T> = _GenericColumns<T>\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type GenericPgColumn = _GenericPgColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type GenericRelation = _GenericRelation\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type GenericTable = _GenericTable\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type IDType = _IDType\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type Insert = _Insert\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type IntegerRawColumn = _IntegerRawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type Migration = _Migration\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type PostgresDB = _PostgresDB\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RawColumn = _RawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RawForeignKey = _RawForeignKey\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RawIndex = _RawIndex\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RawRelation = _RawRelation\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RawTable = _RawTable\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RelationMap = _RelationMap\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type RequireDrizzleKit = _RequireDrizzleKit\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type SetColumnID = _SetColumnID\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type SQLiteDB = _SQLiteDB\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type TimestampRawColumn = _TimestampRawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type TransactionPg = _TransactionPg\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type TransactionSQLite = _TransactionSQLite\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type UUIDRawColumn = _UUIDRawColumn\n/**\n * @deprecated - import from `@payloadcms/drizzle` instead\n */\nexport type VectorRawColumn = _VectorRawColumn\n"],"names":[],"mappings":"AAwLA;;CAEC,GACD,WAA8C"}
@@ -1,20 +0,0 @@
1
- /**
2
- * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building
3
- */
4
- export type ChainedMethods = {
5
- args: unknown[];
6
- method: string;
7
- }[];
8
- /**
9
- * Call and returning methods that would normally be chained together but cannot be because of control logic
10
- * @param methods
11
- * @param query
12
- *
13
- * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building
14
- */
15
- declare const chainMethods: <T>({ methods, query }: {
16
- methods: ChainedMethods;
17
- query: T;
18
- }) => T;
19
- export { chainMethods };
20
- //# sourceMappingURL=chainMethods.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chainMethods.d.ts","sourceRoot":"","sources":["../../src/find/chainMethods.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;CACf,EAAE,CAAA;AAEH;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,GAAI,CAAC,sBAAsB;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,KAAG,CAIpF,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -1,16 +0,0 @@
1
- /**
2
- * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building
3
- */ /**
4
- * Call and returning methods that would normally be chained together but cannot be because of control logic
5
- * @param methods
6
- * @param query
7
- *
8
- * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building
9
- */ const chainMethods = ({ methods, query })=>{
10
- return methods.reduce((query, { args, method })=>{
11
- return query[method](...args);
12
- }, query);
13
- };
14
- export { chainMethods };
15
-
16
- //# sourceMappingURL=chainMethods.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/find/chainMethods.ts"],"sourcesContent":["/**\n * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building\n */\nexport type ChainedMethods = {\n args: unknown[]\n method: string\n}[]\n\n/**\n * Call and returning methods that would normally be chained together but cannot be because of control logic\n * @param methods\n * @param query\n *\n * @deprecated - will be removed in 4.0. Use query + $dynamic() instead: https://orm.drizzle.team/docs/dynamic-query-building\n */\nconst chainMethods = <T>({ methods, query }: { methods: ChainedMethods; query: T }): T => {\n return methods.reduce((query, { args, method }) => {\n return query[method](...args)\n }, query)\n}\n\nexport { chainMethods }\n"],"names":["chainMethods","methods","query","reduce","args","method"],"mappings":"AAAA;;CAEC,GAMD;;;;;;CAMC,GACD,MAAMA,eAAe,CAAI,EAAEC,OAAO,EAAEC,KAAK,EAAyC;IAChF,OAAOD,QAAQE,MAAM,CAAC,CAACD,OAAO,EAAEE,IAAI,EAAEC,MAAM,EAAE;QAC5C,OAAOH,KAAK,CAACG,OAAO,IAAID;IAC1B,GAAGF;AACL;AAEA,SAASF,YAAY,GAAE"}