From 89c5c95713de2b51cf1c55d6f39400bca25b8646 Mon Sep 17 00:00:00 2001 From: Rom Date: Mon, 1 Jul 2024 14:24:23 +0300 Subject: [PATCH 1/2] update sdk for 2024-07 version --- packages/api/lib/constants/index.ts | 2 +- packages/api/lib/generated/sdk.ts | 279 +++++++++++++++++++++++++++- packages/api/package.json | 2 +- 3 files changed, 280 insertions(+), 3 deletions(-) diff --git a/packages/api/lib/constants/index.ts b/packages/api/lib/constants/index.ts index 1942b94..33434e7 100644 --- a/packages/api/lib/constants/index.ts +++ b/packages/api/lib/constants/index.ts @@ -4,7 +4,7 @@ export enum AvailableVersions { CURRENT = 'current', RELEASE_CANDIDATE = 'release_candidate', DEV = 'dev', - CURRENT_VERSION = '2024-04', + CURRENT_VERSION = '2024-07', } export const MONDAY_API_ENDPOINT = 'https://api.monday.com/v2'; diff --git a/packages/api/lib/generated/sdk.ts b/packages/api/lib/generated/sdk.ts index 21142c7..046020c 100644 --- a/packages/api/lib/generated/sdk.ts +++ b/packages/api/lib/generated/sdk.ts @@ -25,6 +25,8 @@ export type Scalars = { /** Your monday.com account */ export type Account = { __typename?: 'Account'; + /** The number of active member users in the account */ + active_members_count?: Maybe; /** The account's country two-letter code in ISO3166 format */ country_code?: Maybe; /** The first day of the week for the account (sunday / monday) */ @@ -165,6 +167,13 @@ export type AppVersion = { type?: Maybe; }; +/** The app monetization information for the current account */ +export type AppsMonetizationInfo = { + __typename?: 'AppsMonetizationInfo'; + /** The number of seats in the account, across all products, used to match the app’s subscription among apps that utilize the seats-based monetization method */ + seats_count?: Maybe; +}; + /** A file uploaded to monday.com */ export type Asset = { __typename?: 'Asset'; @@ -200,6 +209,17 @@ export enum AssetsSource { Gallery = 'gallery', } +/** Result of an batch operation */ +export type BatchExtendTrialPeriod = { + __typename?: 'BatchExtendTrialPeriod'; + /** Details of operations */ + details?: Maybe>; + /** Reason of an error */ + reason?: Maybe; + /** Result of a batch operation */ + success: Scalars['Boolean']['output']; +}; + /** A monday.com board. */ export type Board = { __typename?: 'Board'; @@ -712,6 +732,40 @@ export type DependencyValue = ColumnValue & { value?: Maybe; }; +/** Various documents blocks types, such as text. */ +export enum DocBlockContentType { + /** Bulleted list block */ + BulletedList = 'bulleted_list', + /** Check list block */ + CheckList = 'check_list', + /** Code block */ + Code = 'code', + /** Divider block */ + Divider = 'divider', + /** Image block */ + Image = 'image', + /** Large title block */ + LargeTitle = 'large_title', + /** Layout block */ + Layout = 'layout', + /** Medium title block */ + MediumTitle = 'medium_title', + /** Simple text block */ + NormalText = 'normal_text', + /** Notice block */ + NoticeBox = 'notice_box', + /** Numbered list block */ + NumberedList = 'numbered_list', + /** Quote text block */ + Quote = 'quote', + /** Small title block */ + SmallTitle = 'small_title', + /** Table block */ + Table = 'table', + /** Video block */ + Video = 'video', +} + export type DocValue = ColumnValue & { __typename?: 'DocValue'; /** The column that this value belongs to. */ @@ -728,6 +782,81 @@ export type DocValue = ColumnValue & { value?: Maybe; }; +/** Options to order by. */ +export enum DocsOrderBy { + /** The rank order of the document creation time (desc). */ + CreatedAt = 'created_at', + /** The last time the user making the request viewd the document (desc). */ + UsedAt = 'used_at', +} + +/** A monday.com document. */ +export type Document = { + __typename?: 'Document'; + /** The document's content blocks */ + blocks?: Maybe>>; + /** The document's creation date. */ + created_at?: Maybe; + /** The document's creator */ + created_by?: Maybe; + /** The document's folder unique identifier (null for first level). */ + doc_folder_id?: Maybe; + /** The document's kind (public / private / share). */ + doc_kind: BoardKind; + /** The document's unique identifier. */ + id: Scalars['ID']['output']; + /** The document's name. */ + name: Scalars['String']['output']; + /** The associated board or object's unique identifier. */ + object_id: Scalars['ID']['output']; + /** The document's relative url */ + relative_url?: Maybe; + /** The document's settings. */ + settings?: Maybe; + /** The document's direct url */ + url?: Maybe; + /** The workspace that contains this document (null for main workspace). */ + workspace?: Maybe; + /** The document's workspace unique identifier (null for main workspace). */ + workspace_id?: Maybe; +}; + +/** A monday.com document. */ +export type DocumentBlocksArgs = { + limit?: InputMaybe; + page?: InputMaybe; +}; + +/** A monday.com document block. */ +export type DocumentBlock = { + __typename?: 'DocumentBlock'; + /** The block's content. */ + content?: Maybe; + /** The block's creation date. */ + created_at?: Maybe; + /** The block's creator */ + created_by?: Maybe; + /** The block's document unique identifier. */ + doc_id?: Maybe; + /** The block's unique identifier. */ + id: Scalars['String']['output']; + /** The block's parent block unique identifier. */ + parent_block_id?: Maybe; + /** The block's position on the document. */ + position?: Maybe; + /** The block content type. */ + type?: Maybe; + /** The block's last updated date. */ + updated_at?: Maybe; +}; + +/** A monday.com doc block. */ +export type DocumentBlockIdOnly = { + __typename?: 'DocumentBlockIdOnly'; + /** The block's unique identifier. */ + id: Scalars['String']['output']; +}; + export type DropdownValue = ColumnValue & { __typename?: 'DropdownValue'; /** The column that this value belongs to. */ @@ -781,6 +910,17 @@ export type EmailValue = ColumnValue & { value?: Maybe; }; +/** Result of a single operation */ +export type ExtendTrialPeriod = { + __typename?: 'ExtendTrialPeriod'; + /** Account slug */ + account_slug: Scalars['String']['output']; + /** Reason of an error */ + reason?: Maybe; + /** Result of a single operation */ + success: Scalars['Boolean']['output']; +}; + export type FileAssetValue = { __typename?: 'FileAssetValue'; /** The asset associated with the file. */ @@ -807,6 +947,8 @@ export type FileDocValue = { creator?: Maybe; /** The ID of user who created the file. */ creator_id?: Maybe; + /** The doc associated with the file. */ + doc: Document; /** The file's unique identifier. */ file_id: Scalars['ID']['output']; /** The associated board or object's unique identifier. */ @@ -882,6 +1024,10 @@ export type Folder = { color?: Maybe; /** The folder's creation date. */ created_at: Scalars['Date']['output']; + /** The folder's custom icon. */ + custom_icon?: Maybe; + /** The folder's font weight. */ + font_weight?: Maybe; /** The folder's unique identifier. */ id: Scalars['ID']['output']; /** The folder's name. */ @@ -932,6 +1078,34 @@ export enum FolderColor { WorkingOrange = 'WORKING_ORANGE', } +/** One value out of a list of valid folder custom icons */ +export enum FolderCustomIcon { + /** Folder */ + Folder = 'FOLDER', + /** MoreBelow */ + Morebelow = 'MOREBELOW', + /** MoreBelowFilled */ + Morebelowfilled = 'MOREBELOWFILLED', + /** No custom icon */ + Null = 'NULL', + /** Work */ + Work = 'WORK', +} + +/** One value out of a list of valid folder font weights */ +export enum FolderFontWeight { + /** font-weight-bold */ + FontWeightBold = 'FONT_WEIGHT_BOLD', + /** font-weight-light */ + FontWeightLight = 'FONT_WEIGHT_LIGHT', + /** font-weight-normal */ + FontWeightNormal = 'FONT_WEIGHT_NORMAL', + /** font-weight-very-light */ + FontWeightVeryLight = 'FONT_WEIGHT_VERY_LIGHT', + /** No font weight */ + Null = 'NULL', +} + export type FormulaValue = ColumnValue & { __typename?: 'FormulaValue'; /** The column that this value belongs to. */ @@ -1429,6 +1603,8 @@ export type Mutation = { archive_group?: Maybe; /** Archive an item. */ archive_item?: Maybe; + /** Extends trial period of an application to selected accounts */ + batch_extend_trial_period?: Maybe; /** Change a column's properties */ change_column_metadata?: Maybe; /** Change a column's title */ @@ -1447,6 +1623,8 @@ export type Mutation = { create_board?: Maybe; /** Create a new column in board. */ create_column?: Maybe; + /** Create new document block */ + create_doc_block?: Maybe; /** Creates a folder in a specific workspace. */ create_folder?: Maybe; /** Creates a new group in a specific board. */ @@ -1469,6 +1647,8 @@ export type Mutation = { delete_board?: Maybe; /** Delete a column. */ delete_column?: Maybe; + /** Delete a document block */ + delete_doc_block?: Maybe; /** Deletes a folder in a specific workspace. */ delete_folder?: Maybe; /** Deletes a group in a specific board. */ @@ -1503,16 +1683,24 @@ export type Mutation = { move_item_to_board?: Maybe; /** Move an item to a different group. */ move_item_to_group?: Maybe; + /** Remove mock app subscription for the current account */ + remove_mock_app_subscription?: Maybe; /** Remove users from team. */ remove_users_from_team?: Maybe; + /** Set mock app subscription for the current account */ + set_mock_app_subscription?: Maybe; /** Update Board attribute. */ update_board?: Maybe; + /** Update a document block */ + update_doc_block?: Maybe; /** Updates a folder. */ update_folder?: Maybe; /** Update an existing group. */ update_group?: Maybe; /** Update an existing workspace. */ update_workspace?: Maybe; + /** Use a template */ + use_template?: Maybe