payload-intl 1.2.4 → 1.2.5

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.
@@ -251,8 +251,4 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
251
251
  export interface Auth {
252
252
  [k: string]: unknown;
253
253
  }
254
- declare module 'payload' {
255
- interface GeneratedTypes extends Config {
256
- }
257
- }
258
254
  //# sourceMappingURL=payload-types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-intl",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Payload Plugin for I18N using ICU Messages",
5
5
  "keywords": [
6
6
  "payload",
@@ -1,15 +0,0 @@
1
- /* tslint:disable */ /* eslint-disable */ /**
2
- * This file was automatically generated by Payload.
3
- * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
4
- * and re-run `payload generate:types` to regenerate this file.
5
- */ /**
6
- * Supported timezones in IANA format.
7
- *
8
- * This interface was referenced by `Config`'s JSON-Schema
9
- * via the `definition` "supportedTimezones".
10
- */ /**
11
- * This interface was referenced by `Config`'s JSON-Schema
12
- * via the `definition` "auth".
13
- */ export { };
14
-
15
- //# sourceMappingURL=payload-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/payload-types.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * This file was automatically generated by Payload.\n * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,\n * and re-run `payload generate:types` to regenerate this file.\n */\n\n/**\n * Supported timezones in IANA format.\n *\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"supportedTimezones\".\n */\nexport type SupportedTimezones =\n | 'Pacific/Midway'\n | 'Pacific/Niue'\n | 'Pacific/Honolulu'\n | 'Pacific/Rarotonga'\n | 'America/Anchorage'\n | 'Pacific/Gambier'\n | 'America/Los_Angeles'\n | 'America/Tijuana'\n | 'America/Denver'\n | 'America/Phoenix'\n | 'America/Chicago'\n | 'America/Guatemala'\n | 'America/New_York'\n | 'America/Bogota'\n | 'America/Caracas'\n | 'America/Santiago'\n | 'America/Buenos_Aires'\n | 'America/Sao_Paulo'\n | 'Atlantic/South_Georgia'\n | 'Atlantic/Azores'\n | 'Atlantic/Cape_Verde'\n | 'Europe/London'\n | 'Europe/Berlin'\n | 'Africa/Lagos'\n | 'Europe/Athens'\n | 'Africa/Cairo'\n | 'Europe/Moscow'\n | 'Asia/Riyadh'\n | 'Asia/Dubai'\n | 'Asia/Baku'\n | 'Asia/Karachi'\n | 'Asia/Tashkent'\n | 'Asia/Calcutta'\n | 'Asia/Dhaka'\n | 'Asia/Almaty'\n | 'Asia/Jakarta'\n | 'Asia/Bangkok'\n | 'Asia/Shanghai'\n | 'Asia/Singapore'\n | 'Asia/Tokyo'\n | 'Asia/Seoul'\n | 'Australia/Brisbane'\n | 'Australia/Sydney'\n | 'Pacific/Guam'\n | 'Pacific/Noumea'\n | 'Pacific/Auckland'\n | 'Pacific/Fiji';\n\nexport interface Config {\n auth: {\n users: UserAuthOperations;\n };\n blocks: {};\n collections: {\n users: User;\n messages: Message;\n 'payload-kv': PayloadKv;\n 'payload-locked-documents': PayloadLockedDocument;\n 'payload-preferences': PayloadPreference;\n 'payload-migrations': PayloadMigration;\n };\n collectionsJoins: {};\n collectionsSelect: {\n users: UsersSelect<false> | UsersSelect<true>;\n messages: MessagesSelect<false> | MessagesSelect<true>;\n 'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;\n 'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;\n 'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;\n 'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>;\n };\n db: {\n defaultIDType: string;\n };\n fallbackLocale: null;\n globals: {};\n globalsSelect: {};\n locale: null;\n user: User & {\n collection: 'users';\n };\n jobs: {\n tasks: unknown;\n workflows: unknown;\n };\n}\nexport interface UserAuthOperations {\n forgotPassword: {\n email: string;\n password: string;\n };\n login: {\n email: string;\n password: string;\n };\n registerFirstUser: {\n email: string;\n password: string;\n };\n unlock: {\n email: string;\n password: string;\n };\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"users\".\n */\nexport interface User {\n id: string;\n updatedAt: string;\n createdAt: string;\n email: string;\n resetPasswordToken?: string | null;\n resetPasswordExpiration?: string | null;\n salt?: string | null;\n hash?: string | null;\n loginAttempts?: number | null;\n lockUntil?: string | null;\n sessions?:\n | {\n id: string;\n createdAt?: string | null;\n expiresAt: string;\n }[]\n | null;\n password?: string | null;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"messages\".\n */\nexport interface Message {\n id: string;\n locale: string;\n updatedAt: string;\n createdAt: string;\n url?: string | null;\n thumbnailURL?: string | null;\n filename?: string | null;\n mimeType?: string | null;\n filesize?: number | null;\n width?: number | null;\n height?: number | null;\n focalX?: number | null;\n focalY?: number | null;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-kv\".\n */\nexport interface PayloadKv {\n id: string;\n key: string;\n data:\n | {\n [k: string]: unknown;\n }\n | unknown[]\n | string\n | number\n | boolean\n | null;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-locked-documents\".\n */\nexport interface PayloadLockedDocument {\n id: string;\n document?:\n | ({\n relationTo: 'users';\n value: string | User;\n } | null)\n | ({\n relationTo: 'messages';\n value: string | Message;\n } | null);\n globalSlug?: string | null;\n user: {\n relationTo: 'users';\n value: string | User;\n };\n updatedAt: string;\n createdAt: string;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-preferences\".\n */\nexport interface PayloadPreference {\n id: string;\n user: {\n relationTo: 'users';\n value: string | User;\n };\n key?: string | null;\n value?:\n | {\n [k: string]: unknown;\n }\n | unknown[]\n | string\n | number\n | boolean\n | null;\n updatedAt: string;\n createdAt: string;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-migrations\".\n */\nexport interface PayloadMigration {\n id: string;\n name?: string | null;\n batch?: number | null;\n updatedAt: string;\n createdAt: string;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"users_select\".\n */\nexport interface UsersSelect<T extends boolean = true> {\n updatedAt?: T;\n createdAt?: T;\n email?: T;\n resetPasswordToken?: T;\n resetPasswordExpiration?: T;\n salt?: T;\n hash?: T;\n loginAttempts?: T;\n lockUntil?: T;\n sessions?:\n | T\n | {\n id?: T;\n createdAt?: T;\n expiresAt?: T;\n };\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"messages_select\".\n */\nexport interface MessagesSelect<T extends boolean = true> {\n locale?: T;\n updatedAt?: T;\n createdAt?: T;\n url?: T;\n thumbnailURL?: T;\n filename?: T;\n mimeType?: T;\n filesize?: T;\n width?: T;\n height?: T;\n focalX?: T;\n focalY?: T;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-kv_select\".\n */\nexport interface PayloadKvSelect<T extends boolean = true> {\n key?: T;\n data?: T;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-locked-documents_select\".\n */\nexport interface PayloadLockedDocumentsSelect<T extends boolean = true> {\n document?: T;\n globalSlug?: T;\n user?: T;\n updatedAt?: T;\n createdAt?: T;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-preferences_select\".\n */\nexport interface PayloadPreferencesSelect<T extends boolean = true> {\n user?: T;\n key?: T;\n value?: T;\n updatedAt?: T;\n createdAt?: T;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"payload-migrations_select\".\n */\nexport interface PayloadMigrationsSelect<T extends boolean = true> {\n name?: T;\n batch?: T;\n updatedAt?: T;\n createdAt?: T;\n}\n/**\n * This interface was referenced by `Config`'s JSON-Schema\n * via the `definition` \"auth\".\n */\nexport interface Auth {\n [k: string]: unknown;\n}\n\n\ndeclare module 'payload' {\n export interface GeneratedTypes extends Config {}\n}"],"names":[],"mappings":"AAAA,kBAAkB,GAClB,kBAAkB,GAClB;;;;CAIC,GAED;;;;;CAKC,GA8SD;;;CAGC,GACD,WAEC"}