Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mondaydotcomorg/api

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mondaydotcomorg/api - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

2

dist/cjs/index.js

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("graphql-tag"),t=require("graphql-request");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n,o,i,a,s,u,d,l,p,c,m,_,v,h,g,b,x,I,O,f,y,D,T,C,N,A,S,B,E,$,P=r(e),R=function(){return R=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)};function k(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))}function L(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function V(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}"function"==typeof SuppressedError&&SuppressedError,exports.AssetsSource=void 0,(n=exports.AssetsSource||(exports.AssetsSource={})).All="all",n.Columns="columns",n.Gallery="gallery",exports.BoardAttributes=void 0,(o=exports.BoardAttributes||(exports.BoardAttributes={})).Communication="communication",o.Description="description",o.Name="name",exports.BoardKind=void 0,(i=exports.BoardKind||(exports.BoardKind={})).Private="private",i.Public="public",i.Share="share",exports.BoardObjectType=void 0,(a=exports.BoardObjectType||(exports.BoardObjectType={})).Board="board",a.CustomObject="custom_object",a.Document="document",a.SubItemsBoard="sub_items_board",exports.BoardSubscriberKind=void 0,(s=exports.BoardSubscriberKind||(exports.BoardSubscriberKind={})).Owner="owner",s.Subscriber="subscriber",exports.BoardsOrderBy=void 0,(u=exports.BoardsOrderBy||(exports.BoardsOrderBy={})).CreatedAt="created_at",u.UsedAt="used_at",exports.ColumnProperty=void 0,(d=exports.ColumnProperty||(exports.ColumnProperty={})).Description="description",d.Title="title",exports.ColumnType=void 0,(l=exports.ColumnType||(exports.ColumnType={})).AutoNumber="auto_number",l.BoardRelation="board_relation",l.Button="button",l.Checkbox="checkbox",l.ColorPicker="color_picker",l.Country="country",l.CreationLog="creation_log",l.Date="date",l.Dependency="dependency",l.Doc="doc",l.Dropdown="dropdown",l.Email="email",l.File="file",l.Formula="formula",l.Group="group",l.Hour="hour",l.Integration="integration",l.ItemAssignees="item_assignees",l.ItemId="item_id",l.LastUpdated="last_updated",l.Link="link",l.Location="location",l.LongText="long_text",l.Mirror="mirror",l.Name="name",l.Numbers="numbers",l.People="people",l.Person="person",l.Phone="phone",l.Progress="progress",l.Rating="rating",l.Status="status",l.Subtasks="subtasks",l.Tags="tags",l.Team="team",l.Text="text",l.TimeTracking="time_tracking",l.Timeline="timeline",l.Unsupported="unsupported",l.Vote="vote",l.Week="week",l.WorldClock="world_clock",exports.DocBlockContentType=void 0,(p=exports.DocBlockContentType||(exports.DocBlockContentType={})).BulletedList="bulleted_list",p.CheckList="check_list",p.Code="code",p.Divider="divider",p.Image="image",p.LargeTitle="large_title",p.Layout="layout",p.MediumTitle="medium_title",p.NormalText="normal_text",p.NoticeBox="notice_box",p.NumberedList="numbered_list",p.Quote="quote",p.SmallTitle="small_title",p.Table="table",p.Video="video",exports.DocsOrderBy=void 0,(c=exports.DocsOrderBy||(exports.DocsOrderBy={})).CreatedAt="created_at",c.UsedAt="used_at",exports.DuplicateBoardType=void 0,(m=exports.DuplicateBoardType||(exports.DuplicateBoardType={})).DuplicateBoardWithPulses="duplicate_board_with_pulses",m.DuplicateBoardWithPulsesAndUpdates="duplicate_board_with_pulses_and_updates",m.DuplicateBoardWithStructure="duplicate_board_with_structure",exports.FileLinkValueKind=void 0,(_=exports.FileLinkValueKind||(exports.FileLinkValueKind={})).Box="box",_.Dropbox="dropbox",_.GoogleDrive="google_drive",_.Link="link",_.Onedrive="onedrive",exports.FirstDayOfTheWeek=void 0,(v=exports.FirstDayOfTheWeek||(exports.FirstDayOfTheWeek={})).Monday="monday",v.Sunday="sunday",exports.FolderColor=void 0,(h=exports.FolderColor||(exports.FolderColor={})).Aquamarine="AQUAMARINE",h.BrightBlue="BRIGHT_BLUE",h.BrightGreen="BRIGHT_GREEN",h.ChiliBlue="CHILI_BLUE",h.DarkOrange="DARK_ORANGE",h.DarkPurple="DARK_PURPLE",h.DarkRed="DARK_RED",h.DoneGreen="DONE_GREEN",h.Indigo="INDIGO",h.Lipstick="LIPSTICK",h.Null="NULL",h.Purple="PURPLE",h.SofiaPink="SOFIA_PINK",h.StuckRed="STUCK_RED",h.Sunset="SUNSET",h.WorkingOrange="WORKING_ORANGE",exports.FolderCustomIcon=void 0,(g=exports.FolderCustomIcon||(exports.FolderCustomIcon={})).Folder="FOLDER",g.Morebelow="MOREBELOW",g.Morebelowfilled="MOREBELOWFILLED",g.Null="NULL",g.Work="WORK",exports.FolderFontWeight=void 0,(b=exports.FolderFontWeight||(exports.FolderFontWeight={})).FontWeightBold="FONT_WEIGHT_BOLD",b.FontWeightLight="FONT_WEIGHT_LIGHT",b.FontWeightNormal="FONT_WEIGHT_NORMAL",b.FontWeightVeryLight="FONT_WEIGHT_VERY_LIGHT",b.Null="NULL",exports.GroupAttributes=void 0,(x=exports.GroupAttributes||(exports.GroupAttributes={})).Color="color",x.Position="position",x.RelativePositionAfter="relative_position_after",x.RelativePositionBefore="relative_position_before",x.Title="title",exports.ItemsOrderByDirection=void 0,(I=exports.ItemsOrderByDirection||(exports.ItemsOrderByDirection={})).Asc="asc",I.Desc="desc",exports.ItemsQueryOperator=void 0,(O=exports.ItemsQueryOperator||(exports.ItemsQueryOperator={})).And="and",O.Or="or",exports.ItemsQueryRuleOperator=void 0,(f=exports.ItemsQueryRuleOperator||(exports.ItemsQueryRuleOperator={})).AnyOf="any_of",f.Between="between",f.ContainsTerms="contains_terms",f.ContainsText="contains_text",f.EndsWith="ends_with",f.GreaterThan="greater_than",f.GreaterThanOrEquals="greater_than_or_equals",f.IsEmpty="is_empty",f.IsNotEmpty="is_not_empty",f.LowerThan="lower_than",f.LowerThanOrEqual="lower_than_or_equal",f.NotAnyOf="not_any_of",f.NotContainsText="not_contains_text",f.StartsWith="starts_with",f.WithinTheLast="within_the_last",f.WithinTheNext="within_the_next",exports.Kind=void 0,(y=exports.Kind||(exports.Kind={})).Person="person",y.Team="team",exports.NotificationTargetType=void 0,(D=exports.NotificationTargetType||(exports.NotificationTargetType={})).Post="Post",D.Project="Project",exports.NumberValueUnitDirection=void 0,(T=exports.NumberValueUnitDirection||(exports.NumberValueUnitDirection={})).Left="left",T.Right="right",exports.PositionRelative=void 0,(C=exports.PositionRelative||(exports.PositionRelative={})).AfterAt="after_at",C.BeforeAt="before_at",exports.State=void 0,(N=exports.State||(exports.State={})).Active="active",N.All="all",N.Archived="archived",N.Deleted="deleted",exports.UserKind=void 0,(A=exports.UserKind||(exports.UserKind={})).All="all",A.Guests="guests",A.NonGuests="non_guests",A.NonPending="non_pending",exports.VersionKind=void 0,(S=exports.VersionKind||(exports.VersionKind={})).Current="current",S.Deprecated="deprecated",S.Dev="dev",S.Maintenance="maintenance",S.OldMaintenance="old__maintenance",S.OldPreviousMaintenance="old_previous_maintenance",S.PreviousMaintenance="previous_maintenance",S.ReleaseCandidate="release_candidate",exports.WebhookEventType=void 0,(B=exports.WebhookEventType||(exports.WebhookEventType={})).ChangeColumnValue="change_column_value",B.ChangeName="change_name",B.ChangeSpecificColumnValue="change_specific_column_value",B.ChangeStatusColumnValue="change_status_column_value",B.ChangeSubitemColumnValue="change_subitem_column_value",B.ChangeSubitemName="change_subitem_name",B.CreateColumn="create_column",B.CreateItem="create_item",B.CreateSubitem="create_subitem",B.CreateSubitemUpdate="create_subitem_update",B.CreateUpdate="create_update",B.DeleteUpdate="delete_update",B.EditUpdate="edit_update",B.ItemArchived="item_archived",B.ItemDeleted="item_deleted",B.ItemMovedToAnyGroup="item_moved_to_any_group",B.ItemMovedToSpecificGroup="item_moved_to_specific_group",B.ItemRestored="item_restored",B.MoveSubitem="move_subitem",B.SubitemArchived="subitem_archived",B.SubitemDeleted="subitem_deleted",exports.WorkspaceKind=void 0,(E=exports.WorkspaceKind||(exports.WorkspaceKind={})).Closed="closed",E.Open="open",exports.WorkspaceSubscriberKind=void 0,($=exports.WorkspaceSubscriberKind||(exports.WorkspaceSubscriberKind={})).Owner="owner",$.Subscriber="subscriber",exports.WorkspacesOrderBy=void 0,(exports.WorkspacesOrderBy||(exports.WorkspacesOrderBy={})).CreatedAt="created_at";var w,F,M,W,G,q,U,K,j,H=P.default(w||(w=V(["\n fragment UserFields on User {\n id\n name\n email\n }\n"],["\n fragment UserFields on User {\n id\n name\n email\n }\n"]))),Q=P.default(F||(F=V(["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"],["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"])),H),J=P.default(M||(M=V(["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),Y=P.default(W||(W=V(["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),z=P.default(G||(G=V(["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"],["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"]))),X=P.default(q||(q=V(["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"],["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"]))),Z=P.default(U||(U=V(["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"],["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"]))),ee=P.default(K||(K=V(["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"],["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"]))),te=function(e,t,r,n){return e()};function re(e,t){return void 0===t&&(t=te),{getMeOp:function(r,n){return t((function(t){return e.request(Q,r,R(R({},n),t))}),"getMeOp","query",r)},changeSimpleColumnValueOp:function(r,n){return t((function(t){return e.request(J,r,R(R({},n),t))}),"changeSimpleColumnValueOp","mutation",r)},changeColumnValueOp:function(r,n){return t((function(t){return e.request(Y,r,R(R({},n),t))}),"changeColumnValueOp","mutation",r)},createItemOp:function(r,n){return t((function(t){return e.request(z,r,R(R({},n),t))}),"createItemOp","mutation",r)},changeMultipleColumnValuesOp:function(r,n){return t((function(t){return e.request(X,r,R(R({},n),t))}),"changeMultipleColumnValuesOp","mutation",r)},getBoardItemsOp:function(r,n){return t((function(t){return e.request(Z,r,R(R({},n),t))}),"getBoardItemsOp","query",r)},getBoardGroupsOp:function(r,n){return t((function(t){return e.request(ee,r,R(R({},n),t))}),"getBoardGroupsOp","query",r)}}}exports.AvailableVersions=void 0,(j=exports.AvailableVersions||(exports.AvailableVersions={})).DEPRECATED="deprecated",j.MAINTENANCE="maintenance",j.CURRENT="current",j.RELEASE_CANDIDATE="release_candidate",j.DEV="dev",j.CURRENT_VERSION="2024-10";var ne="https://api.monday.com/v2",oe=exports.AvailableVersions.CURRENT_VERSION,ie="5.0.0",ae=function(e,r){void 0===r&&(r=oe);var n=this;this.query=function(e,t){return k(n,void 0,void 0,(function(){return L(this,(function(r){switch(r.label){case 0:return[4,this.client.request(e,t)];case 1:return[2,r.sent()]}}))}))},this.apiVersion=r;var o=function(){if(process.env.MONDAY_API_ENDPOINT)return process.env.MONDAY_API_ENDPOINT;var e=process.env.PLATFORM_API;if(e)try{var t=JSON.parse(e);if(t.PLATFORM_API_ENDPOINT)return t.PLATFORM_API_ENDPOINT}catch(e){console.error("Failed to parse PLATFORM_API secret",e)}return ne}();this.client=new t.GraphQLClient(o,{headers:{"Content-Type":"application/json",Authorization:e,"API-Version":this.apiVersion,"Api-Sdk-Version":ie}}),this.operations=re(this.client)},se=function(){function e(e){void 0===e&&(e=oe),this.listeners={},this.generateRequestId=function(){return Math.random().toString(36).substring(2,9)},this.apiVersion=e,window.addEventListener("message",this.receiveMessage.bind(this),!1)}return e.prototype.query=function(e,t,r,n){var o=this;return void 0===n&&(n=6e4),new Promise((function(i,a){var s=o.generateRequestId(),u={query:e,variables:t},d=r||o.apiVersion;window.parent.postMessage({method:"api",args:{params:u,apiVersion:d},requestId:s},"*");var l=setTimeout((function(){a(new Error("Request timed out"))}),n),p=o.addListener(s,(function(e){clearTimeout(l),p(),e.errorMessage?a(new Error("".concat(e.errorMessage," - ").concat(e.data))):i(e)}))}))},e.prototype.addListener=function(e,t){var r=this,n=this.listeners[e]||new Set;return n.add(t),this.listeners[e]=n,function(){n.delete(t),0===n.size&&delete r.listeners[e]}},e.prototype.receiveMessage=function(e){var t=e.data.requestId,r=this.listeners[t];r&&r.forEach((function(t){return t(e.data)}))},e}();exports.ApiClient=ae,exports.ChangeColumnValueOpDocument=Y,exports.ChangeMultipleColumnValuesOpDocument=X,exports.ChangeSimpleColumnValueOpDocument=J,exports.CreateItemOpDocument=z,exports.DEFAULT_VERSION=oe,exports.GetBoardGroupsOpDocument=ee,exports.GetBoardItemsOpDocument=Z,exports.GetMeOpDocument=Q,exports.MONDAY_API_ENDPOINT=ne,exports.SeamlessApiClient=se,exports.UserFieldsFragmentDoc=H,exports.getSdk=re;
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("graphql-tag"),t=require("graphql-request");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r,n,i,a,s,u,d,l,p,c,m,_,I,v,g,x,h,b,O,y,f,E,C,D,A,N,T,P,B,S,L,R,$,k,G=o(e),V=function(){return V=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},V.apply(this,arguments)};function w(e,t,o,r){return new(o||(o=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function F(e,t){var o,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(o=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{o=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}"function"==typeof SuppressedError&&SuppressedError,exports.AssetsSource=void 0,(r=exports.AssetsSource||(exports.AssetsSource={})).All="all",r.Columns="columns",r.Gallery="gallery",exports.BoardAttributes=void 0,(n=exports.BoardAttributes||(exports.BoardAttributes={})).Communication="communication",n.Description="description",n.Name="name",exports.BoardEditPermissions=void 0,(i=exports.BoardEditPermissions||(exports.BoardEditPermissions={})).Assignee="assignee",i.Collaborators="collaborators",i.Everyone="everyone",i.Owners="owners",exports.BoardKind=void 0,(a=exports.BoardKind||(exports.BoardKind={})).Private="private",a.Public="public",a.Share="share",exports.BoardObjectType=void 0,(s=exports.BoardObjectType||(exports.BoardObjectType={})).Board="board",s.CustomObject="custom_object",s.Document="document",s.SubItemsBoard="sub_items_board",exports.BoardSubscriberKind=void 0,(u=exports.BoardSubscriberKind||(exports.BoardSubscriberKind={})).Owner="owner",u.Subscriber="subscriber",exports.BoardViewPermissions=void 0,(exports.BoardViewPermissions||(exports.BoardViewPermissions={})).AnyAssigneeColumn="any_assignee_column",exports.BoardsOrderBy=void 0,(d=exports.BoardsOrderBy||(exports.BoardsOrderBy={})).CreatedAt="created_at",d.UsedAt="used_at",exports.ColumnProperty=void 0,(l=exports.ColumnProperty||(exports.ColumnProperty={})).Description="description",l.Title="title",exports.ColumnType=void 0,(p=exports.ColumnType||(exports.ColumnType={})).AutoNumber="auto_number",p.BoardRelation="board_relation",p.Button="button",p.Checkbox="checkbox",p.ColorPicker="color_picker",p.Country="country",p.CreationLog="creation_log",p.Date="date",p.Dependency="dependency",p.Doc="doc",p.Dropdown="dropdown",p.Email="email",p.File="file",p.Formula="formula",p.Group="group",p.Hour="hour",p.Integration="integration",p.ItemAssignees="item_assignees",p.ItemId="item_id",p.LastUpdated="last_updated",p.Link="link",p.Location="location",p.LongText="long_text",p.Mirror="mirror",p.Name="name",p.Numbers="numbers",p.People="people",p.Person="person",p.Phone="phone",p.Progress="progress",p.Rating="rating",p.Status="status",p.Subtasks="subtasks",p.Tags="tags",p.Team="team",p.Text="text",p.TimeTracking="time_tracking",p.Timeline="timeline",p.Unsupported="unsupported",p.Vote="vote",p.Week="week",p.WorldClock="world_clock",exports.CustomActivityColor=void 0,(c=exports.CustomActivityColor||(exports.CustomActivityColor={})).BrinkPink="BRINK_PINK",c.CelticBlue="CELTIC_BLUE",c.CornflowerBlue="CORNFLOWER_BLUE",c.DingyDungeon="DINGY_DUNGEON",c.GoGreen="GO_GREEN",c.Gray="GRAY",c.LightDeepPink="LIGHT_DEEP_PINK",c.LightHotPink="LIGHT_HOT_PINK",c.MayaBlue="MAYA_BLUE",c.MediumTurquoise="MEDIUM_TURQUOISE",c.ParadisePink="PARADISE_PINK",c.PhilippineGreen="PHILIPPINE_GREEN",c.PhilippineYellow="PHILIPPINE_YELLOW",c.SlateBlue="SLATE_BLUE",c.VividCerulean="VIVID_CERULEAN",c.YankeesBlue="YANKEES_BLUE",c.YellowGreen="YELLOW_GREEN",c.YellowOrange="YELLOW_ORANGE",exports.CustomActivityIcon=void 0,(m=exports.CustomActivityIcon||(exports.CustomActivityIcon={})).Ascending="ASCENDING",m.Camera="CAMERA",m.Conference="CONFERENCE",m.Flag="FLAG",m.Gift="GIFT",m.Headphones="HEADPHONES",m.Homekeys="HOMEKEYS",m.Location="LOCATION",m.Notebook="NOTEBOOK",m.Paperplane="PAPERPLANE",m.Plane="PLANE",m.Pliers="PLIERS",m.Tripod="TRIPOD",m.Twoflags="TWOFLAGS",m.Utencils="UTENCILS",exports.DiscountPeriod=void 0,(_=exports.DiscountPeriod||(exports.DiscountPeriod={})).Monthly="MONTHLY",_.Yearly="YEARLY",exports.DocBlockContentType=void 0,(I=exports.DocBlockContentType||(exports.DocBlockContentType={})).BulletedList="bulleted_list",I.CheckList="check_list",I.Code="code",I.Divider="divider",I.Image="image",I.LargeTitle="large_title",I.Layout="layout",I.MediumTitle="medium_title",I.NormalText="normal_text",I.NoticeBox="notice_box",I.NumberedList="numbered_list",I.Quote="quote",I.SmallTitle="small_title",I.Table="table",I.Video="video",exports.DocsOrderBy=void 0,(v=exports.DocsOrderBy||(exports.DocsOrderBy={})).CreatedAt="created_at",v.UsedAt="used_at",exports.DuplicateBoardType=void 0,(g=exports.DuplicateBoardType||(exports.DuplicateBoardType={})).DuplicateBoardWithPulses="duplicate_board_with_pulses",g.DuplicateBoardWithPulsesAndUpdates="duplicate_board_with_pulses_and_updates",g.DuplicateBoardWithStructure="duplicate_board_with_structure",exports.FileLinkValueKind=void 0,(x=exports.FileLinkValueKind||(exports.FileLinkValueKind={})).Box="box",x.Dropbox="dropbox",x.GoogleDrive="google_drive",x.Link="link",x.Onedrive="onedrive",exports.FirstDayOfTheWeek=void 0,(h=exports.FirstDayOfTheWeek||(exports.FirstDayOfTheWeek={})).Monday="monday",h.Sunday="sunday",exports.FolderColor=void 0,(b=exports.FolderColor||(exports.FolderColor={})).Aquamarine="AQUAMARINE",b.BrightBlue="BRIGHT_BLUE",b.BrightGreen="BRIGHT_GREEN",b.ChiliBlue="CHILI_BLUE",b.DarkOrange="DARK_ORANGE",b.DarkPurple="DARK_PURPLE",b.DarkRed="DARK_RED",b.DoneGreen="DONE_GREEN",b.Indigo="INDIGO",b.Lipstick="LIPSTICK",b.Null="NULL",b.Purple="PURPLE",b.SofiaPink="SOFIA_PINK",b.StuckRed="STUCK_RED",b.Sunset="SUNSET",b.WorkingOrange="WORKING_ORANGE",exports.FolderCustomIcon=void 0,(O=exports.FolderCustomIcon||(exports.FolderCustomIcon={})).Folder="FOLDER",O.Morebelow="MOREBELOW",O.Morebelowfilled="MOREBELOWFILLED",O.Null="NULL",O.Work="WORK",exports.FolderFontWeight=void 0,(y=exports.FolderFontWeight||(exports.FolderFontWeight={})).FontWeightBold="FONT_WEIGHT_BOLD",y.FontWeightLight="FONT_WEIGHT_LIGHT",y.FontWeightNormal="FONT_WEIGHT_NORMAL",y.FontWeightVeryLight="FONT_WEIGHT_VERY_LIGHT",y.Null="NULL",exports.GroupAttributes=void 0,(f=exports.GroupAttributes||(exports.GroupAttributes={})).Color="color",f.Position="position",f.RelativePositionAfter="relative_position_after",f.RelativePositionBefore="relative_position_before",f.Title="title",exports.ItemsOrderByDirection=void 0,(E=exports.ItemsOrderByDirection||(exports.ItemsOrderByDirection={})).Asc="asc",E.Desc="desc",exports.ItemsQueryOperator=void 0,(C=exports.ItemsQueryOperator||(exports.ItemsQueryOperator={})).And="and",C.Or="or",exports.ItemsQueryRuleOperator=void 0,(D=exports.ItemsQueryRuleOperator||(exports.ItemsQueryRuleOperator={})).AnyOf="any_of",D.Between="between",D.ContainsTerms="contains_terms",D.ContainsText="contains_text",D.EndsWith="ends_with",D.GreaterThan="greater_than",D.GreaterThanOrEquals="greater_than_or_equals",D.IsEmpty="is_empty",D.IsNotEmpty="is_not_empty",D.LowerThan="lower_than",D.LowerThanOrEqual="lower_than_or_equal",D.NotAnyOf="not_any_of",D.NotContainsText="not_contains_text",D.StartsWith="starts_with",D.WithinTheLast="within_the_last",D.WithinTheNext="within_the_next",exports.Kind=void 0,(A=exports.Kind||(exports.Kind={})).Person="person",A.Team="team",exports.NotificationTargetType=void 0,(N=exports.NotificationTargetType||(exports.NotificationTargetType={})).Post="Post",N.Project="Project",exports.NumberValueUnitDirection=void 0,(T=exports.NumberValueUnitDirection||(exports.NumberValueUnitDirection={})).Left="left",T.Right="right",exports.PositionRelative=void 0,(P=exports.PositionRelative||(exports.PositionRelative={})).AfterAt="after_at",P.BeforeAt="before_at",exports.State=void 0,(B=exports.State||(exports.State={})).Active="active",B.All="all",B.Archived="archived",B.Deleted="deleted",exports.UserKind=void 0,(S=exports.UserKind||(exports.UserKind={})).All="all",S.Guests="guests",S.NonGuests="non_guests",S.NonPending="non_pending",exports.VersionKind=void 0,(L=exports.VersionKind||(exports.VersionKind={})).Current="current",L.Deprecated="deprecated",L.Dev="dev",L.Maintenance="maintenance",L.OldMaintenance="old__maintenance",L.OldPreviousMaintenance="old_previous_maintenance",L.PreviousMaintenance="previous_maintenance",L.ReleaseCandidate="release_candidate",exports.WebhookEventType=void 0,(R=exports.WebhookEventType||(exports.WebhookEventType={})).ChangeColumnValue="change_column_value",R.ChangeName="change_name",R.ChangeSpecificColumnValue="change_specific_column_value",R.ChangeStatusColumnValue="change_status_column_value",R.ChangeSubitemColumnValue="change_subitem_column_value",R.ChangeSubitemName="change_subitem_name",R.CreateColumn="create_column",R.CreateItem="create_item",R.CreateSubitem="create_subitem",R.CreateSubitemUpdate="create_subitem_update",R.CreateUpdate="create_update",R.DeleteUpdate="delete_update",R.EditUpdate="edit_update",R.ItemArchived="item_archived",R.ItemDeleted="item_deleted",R.ItemMovedToAnyGroup="item_moved_to_any_group",R.ItemMovedToSpecificGroup="item_moved_to_specific_group",R.ItemRestored="item_restored",R.MoveSubitem="move_subitem",R.SubitemArchived="subitem_archived",R.SubitemDeleted="subitem_deleted",exports.WorkspaceKind=void 0,($=exports.WorkspaceKind||(exports.WorkspaceKind={})).Closed="closed",$.Open="open",exports.WorkspaceSubscriberKind=void 0,(k=exports.WorkspaceSubscriberKind||(exports.WorkspaceSubscriberKind={})).Owner="owner",k.Subscriber="subscriber",exports.WorkspacesOrderBy=void 0,(exports.WorkspacesOrderBy||(exports.WorkspacesOrderBy={})).CreatedAt="created_at";var U,W,K,q,H,Y,j,Q,J,z=G.default(U||(U=M(["\n fragment UserFields on User {\n id\n name\n email\n }\n"],["\n fragment UserFields on User {\n id\n name\n email\n }\n"]))),X=G.default(W||(W=M(["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"],["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"])),z),Z=G.default(K||(K=M(["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),ee=G.default(q||(q=M(["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),te=G.default(H||(H=M(["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"],["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"]))),oe=G.default(Y||(Y=M(["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"],["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"]))),re=G.default(j||(j=M(["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"],["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"]))),ne=G.default(Q||(Q=M(["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"],["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"]))),ie=function(e,t,o,r){return e()};function ae(e,t){return void 0===t&&(t=ie),{getMeOp:function(o,r){return t((function(t){return e.request(X,o,V(V({},r),t))}),"getMeOp","query",o)},changeSimpleColumnValueOp:function(o,r){return t((function(t){return e.request(Z,o,V(V({},r),t))}),"changeSimpleColumnValueOp","mutation",o)},changeColumnValueOp:function(o,r){return t((function(t){return e.request(ee,o,V(V({},r),t))}),"changeColumnValueOp","mutation",o)},createItemOp:function(o,r){return t((function(t){return e.request(te,o,V(V({},r),t))}),"createItemOp","mutation",o)},changeMultipleColumnValuesOp:function(o,r){return t((function(t){return e.request(oe,o,V(V({},r),t))}),"changeMultipleColumnValuesOp","mutation",o)},getBoardItemsOp:function(o,r){return t((function(t){return e.request(re,o,V(V({},r),t))}),"getBoardItemsOp","query",o)},getBoardGroupsOp:function(o,r){return t((function(t){return e.request(ne,o,V(V({},r),t))}),"getBoardGroupsOp","query",o)}}}exports.AvailableVersions=void 0,(J=exports.AvailableVersions||(exports.AvailableVersions={})).DEPRECATED="deprecated",J.MAINTENANCE="maintenance",J.CURRENT="current",J.RELEASE_CANDIDATE="release_candidate",J.DEV="dev",J.CURRENT_VERSION="2024-10";var se="https://api.monday.com/v2",ue=exports.AvailableVersions.CURRENT_VERSION,de="5.0.1",le=function(e,o){void 0===o&&(o=ue);var r=this;this.query=function(e,t){return w(r,void 0,void 0,(function(){return F(this,(function(o){switch(o.label){case 0:return[4,this.client.request(e,t)];case 1:return[2,o.sent()]}}))}))},this.apiVersion=o;var n=function(){if(process.env.MONDAY_API_ENDPOINT)return process.env.MONDAY_API_ENDPOINT;var e=process.env.PLATFORM_API;if(e)try{var t=JSON.parse(e);if(t.PLATFORM_API_ENDPOINT)return t.PLATFORM_API_ENDPOINT}catch(e){console.error("Failed to parse PLATFORM_API secret",e)}return se}();this.client=new t.GraphQLClient(n,{headers:{"Content-Type":"application/json",Authorization:e,"API-Version":this.apiVersion,"Api-Sdk-Version":de}}),this.operations=ae(this.client)},pe=function(){function e(e){void 0===e&&(e=ue),this.listeners={},this.generateRequestId=function(){return Math.random().toString(36).substring(2,9)},this.apiVersion=e,window.addEventListener("message",this.receiveMessage.bind(this),!1)}return e.prototype.query=function(e,t,o,r){var n=this;return void 0===r&&(r=6e4),new Promise((function(i,a){var s=n.generateRequestId(),u={query:e,variables:t},d=o||n.apiVersion;window.parent.postMessage({method:"api",args:{params:u,apiVersion:d},requestId:s},"*");var l=setTimeout((function(){a(new Error("Request timed out"))}),r),p=n.addListener(s,(function(e){clearTimeout(l),p(),e.errorMessage?a(new Error("".concat(e.errorMessage," - ").concat(e.data))):i(e)}))}))},e.prototype.addListener=function(e,t){var o=this,r=this.listeners[e]||new Set;return r.add(t),this.listeners[e]=r,function(){r.delete(t),0===r.size&&delete o.listeners[e]}},e.prototype.receiveMessage=function(e){var t=e.data.requestId,o=this.listeners[t];o&&o.forEach((function(t){return t(e.data)}))},e}();exports.ApiClient=le,exports.ChangeColumnValueOpDocument=ee,exports.ChangeMultipleColumnValuesOpDocument=oe,exports.ChangeSimpleColumnValueOpDocument=Z,exports.CreateItemOpDocument=te,exports.DEFAULT_VERSION=ue,exports.GetBoardGroupsOpDocument=ne,exports.GetBoardItemsOpDocument=re,exports.GetMeOpDocument=X,exports.MONDAY_API_ENDPOINT=se,exports.SeamlessApiClient=pe,exports.UserFieldsFragmentDoc=z,exports.getSdk=ae;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import e from"graphql-tag";import{GraphQLClient as n}from"graphql-request";var t,i,r,o,a,u,l,s,d,c,m,_,p,g,f,h,I,b,v,O,N,$,y,D,C,E,T,S,A,P,L,R=function(){return R=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},R.apply(this,arguments)};function w(e,n,t,i){return new(t||(t=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function u(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}l((i=i.apply(e,n||[])).next())}))}function M(e,n){var t,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(t=1,i&&(r=2&u[0]?i.return:u[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;switch(i=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,i=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){a.label=u[1];break}if(6===u[0]&&a.label<r[1]){a.label=r[1],r=u;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(u);break}r[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(e,a)}catch(e){u=[6,e],i=0}finally{t=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function q(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError,function(e){e.All="all",e.Columns="columns",e.Gallery="gallery"}(t||(t={})),function(e){e.Communication="communication",e.Description="description",e.Name="name"}(i||(i={})),function(e){e.Private="private",e.Public="public",e.Share="share"}(r||(r={})),function(e){e.Board="board",e.CustomObject="custom_object",e.Document="document",e.SubItemsBoard="sub_items_board"}(o||(o={})),function(e){e.Owner="owner",e.Subscriber="subscriber"}(a||(a={})),function(e){e.CreatedAt="created_at",e.UsedAt="used_at"}(u||(u={})),function(e){e.Description="description",e.Title="title"}(l||(l={})),function(e){e.AutoNumber="auto_number",e.BoardRelation="board_relation",e.Button="button",e.Checkbox="checkbox",e.ColorPicker="color_picker",e.Country="country",e.CreationLog="creation_log",e.Date="date",e.Dependency="dependency",e.Doc="doc",e.Dropdown="dropdown",e.Email="email",e.File="file",e.Formula="formula",e.Group="group",e.Hour="hour",e.Integration="integration",e.ItemAssignees="item_assignees",e.ItemId="item_id",e.LastUpdated="last_updated",e.Link="link",e.Location="location",e.LongText="long_text",e.Mirror="mirror",e.Name="name",e.Numbers="numbers",e.People="people",e.Person="person",e.Phone="phone",e.Progress="progress",e.Rating="rating",e.Status="status",e.Subtasks="subtasks",e.Tags="tags",e.Team="team",e.Text="text",e.TimeTracking="time_tracking",e.Timeline="timeline",e.Unsupported="unsupported",e.Vote="vote",e.Week="week",e.WorldClock="world_clock"}(s||(s={})),function(e){e.BulletedList="bulleted_list",e.CheckList="check_list",e.Code="code",e.Divider="divider",e.Image="image",e.LargeTitle="large_title",e.Layout="layout",e.MediumTitle="medium_title",e.NormalText="normal_text",e.NoticeBox="notice_box",e.NumberedList="numbered_list",e.Quote="quote",e.SmallTitle="small_title",e.Table="table",e.Video="video"}(d||(d={})),function(e){e.CreatedAt="created_at",e.UsedAt="used_at"}(c||(c={})),function(e){e.DuplicateBoardWithPulses="duplicate_board_with_pulses",e.DuplicateBoardWithPulsesAndUpdates="duplicate_board_with_pulses_and_updates",e.DuplicateBoardWithStructure="duplicate_board_with_structure"}(m||(m={})),function(e){e.Box="box",e.Dropbox="dropbox",e.GoogleDrive="google_drive",e.Link="link",e.Onedrive="onedrive"}(_||(_={})),function(e){e.Monday="monday",e.Sunday="sunday"}(p||(p={})),function(e){e.Aquamarine="AQUAMARINE",e.BrightBlue="BRIGHT_BLUE",e.BrightGreen="BRIGHT_GREEN",e.ChiliBlue="CHILI_BLUE",e.DarkOrange="DARK_ORANGE",e.DarkPurple="DARK_PURPLE",e.DarkRed="DARK_RED",e.DoneGreen="DONE_GREEN",e.Indigo="INDIGO",e.Lipstick="LIPSTICK",e.Null="NULL",e.Purple="PURPLE",e.SofiaPink="SOFIA_PINK",e.StuckRed="STUCK_RED",e.Sunset="SUNSET",e.WorkingOrange="WORKING_ORANGE"}(g||(g={})),function(e){e.Folder="FOLDER",e.Morebelow="MOREBELOW",e.Morebelowfilled="MOREBELOWFILLED",e.Null="NULL",e.Work="WORK"}(f||(f={})),function(e){e.FontWeightBold="FONT_WEIGHT_BOLD",e.FontWeightLight="FONT_WEIGHT_LIGHT",e.FontWeightNormal="FONT_WEIGHT_NORMAL",e.FontWeightVeryLight="FONT_WEIGHT_VERY_LIGHT",e.Null="NULL"}(h||(h={})),function(e){e.Color="color",e.Position="position",e.RelativePositionAfter="relative_position_after",e.RelativePositionBefore="relative_position_before",e.Title="title"}(I||(I={})),function(e){e.Asc="asc",e.Desc="desc"}(b||(b={})),function(e){e.And="and",e.Or="or"}(v||(v={})),function(e){e.AnyOf="any_of",e.Between="between",e.ContainsTerms="contains_terms",e.ContainsText="contains_text",e.EndsWith="ends_with",e.GreaterThan="greater_than",e.GreaterThanOrEquals="greater_than_or_equals",e.IsEmpty="is_empty",e.IsNotEmpty="is_not_empty",e.LowerThan="lower_than",e.LowerThanOrEqual="lower_than_or_equal",e.NotAnyOf="not_any_of",e.NotContainsText="not_contains_text",e.StartsWith="starts_with",e.WithinTheLast="within_the_last",e.WithinTheNext="within_the_next"}(O||(O={})),function(e){e.Person="person",e.Team="team"}(N||(N={})),function(e){e.Post="Post",e.Project="Project"}($||($={})),function(e){e.Left="left",e.Right="right"}(y||(y={})),function(e){e.AfterAt="after_at",e.BeforeAt="before_at"}(D||(D={})),function(e){e.Active="active",e.All="all",e.Archived="archived",e.Deleted="deleted"}(C||(C={})),function(e){e.All="all",e.Guests="guests",e.NonGuests="non_guests",e.NonPending="non_pending"}(E||(E={})),function(e){e.Current="current",e.Deprecated="deprecated",e.Dev="dev",e.Maintenance="maintenance",e.OldMaintenance="old__maintenance",e.OldPreviousMaintenance="old_previous_maintenance",e.PreviousMaintenance="previous_maintenance",e.ReleaseCandidate="release_candidate"}(T||(T={})),function(e){e.ChangeColumnValue="change_column_value",e.ChangeName="change_name",e.ChangeSpecificColumnValue="change_specific_column_value",e.ChangeStatusColumnValue="change_status_column_value",e.ChangeSubitemColumnValue="change_subitem_column_value",e.ChangeSubitemName="change_subitem_name",e.CreateColumn="create_column",e.CreateItem="create_item",e.CreateSubitem="create_subitem",e.CreateSubitemUpdate="create_subitem_update",e.CreateUpdate="create_update",e.DeleteUpdate="delete_update",e.EditUpdate="edit_update",e.ItemArchived="item_archived",e.ItemDeleted="item_deleted",e.ItemMovedToAnyGroup="item_moved_to_any_group",e.ItemMovedToSpecificGroup="item_moved_to_specific_group",e.ItemRestored="item_restored",e.MoveSubitem="move_subitem",e.SubitemArchived="subitem_archived",e.SubitemDeleted="subitem_deleted"}(S||(S={})),function(e){e.Closed="closed",e.Open="open"}(A||(A={})),function(e){e.Owner="owner",e.Subscriber="subscriber"}(P||(P={})),function(e){e.CreatedAt="created_at"}(L||(L={}));var V,B,k,G,U,x,F,W,H,j=e(V||(V=q(["\n fragment UserFields on User {\n id\n name\n email\n }\n"],["\n fragment UserFields on User {\n id\n name\n email\n }\n"]))),K=e(B||(B=q(["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"],["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"])),j),J=e(k||(k=q(["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),Y=e(G||(G=q(["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),z=e(U||(U=q(["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"],["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"]))),Q=e(x||(x=q(["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"],["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"]))),X=e(F||(F=q(["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"],["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"]))),Z=e(W||(W=q(["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"],["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"]))),ee=function(e,n,t,i){return e()};function ne(e,n){return void 0===n&&(n=ee),{getMeOp:function(t,i){return n((function(n){return e.request(K,t,R(R({},i),n))}),"getMeOp","query",t)},changeSimpleColumnValueOp:function(t,i){return n((function(n){return e.request(J,t,R(R({},i),n))}),"changeSimpleColumnValueOp","mutation",t)},changeColumnValueOp:function(t,i){return n((function(n){return e.request(Y,t,R(R({},i),n))}),"changeColumnValueOp","mutation",t)},createItemOp:function(t,i){return n((function(n){return e.request(z,t,R(R({},i),n))}),"createItemOp","mutation",t)},changeMultipleColumnValuesOp:function(t,i){return n((function(n){return e.request(Q,t,R(R({},i),n))}),"changeMultipleColumnValuesOp","mutation",t)},getBoardItemsOp:function(t,i){return n((function(n){return e.request(X,t,R(R({},i),n))}),"getBoardItemsOp","query",t)},getBoardGroupsOp:function(t,i){return n((function(n){return e.request(Z,t,R(R({},i),n))}),"getBoardGroupsOp","query",t)}}}!function(e){e.DEPRECATED="deprecated",e.MAINTENANCE="maintenance",e.CURRENT="current",e.RELEASE_CANDIDATE="release_candidate",e.DEV="dev",e.CURRENT_VERSION="2024-10"}(H||(H={}));var te="https://api.monday.com/v2",ie=H.CURRENT_VERSION,re="5.0.0",oe=function(e,t){void 0===t&&(t=ie);var i=this;this.query=function(e,n){return w(i,void 0,void 0,(function(){return M(this,(function(t){switch(t.label){case 0:return[4,this.client.request(e,n)];case 1:return[2,t.sent()]}}))}))},this.apiVersion=t;var r=function(){if(process.env.MONDAY_API_ENDPOINT)return process.env.MONDAY_API_ENDPOINT;var e=process.env.PLATFORM_API;if(e)try{var n=JSON.parse(e);if(n.PLATFORM_API_ENDPOINT)return n.PLATFORM_API_ENDPOINT}catch(e){console.error("Failed to parse PLATFORM_API secret",e)}return te}();this.client=new n(r,{headers:{"Content-Type":"application/json",Authorization:e,"API-Version":this.apiVersion,"Api-Sdk-Version":re}}),this.operations=ne(this.client)},ae=function(){function e(e){void 0===e&&(e=ie),this.listeners={},this.generateRequestId=function(){return Math.random().toString(36).substring(2,9)},this.apiVersion=e,window.addEventListener("message",this.receiveMessage.bind(this),!1)}return e.prototype.query=function(e,n,t,i){var r=this;return void 0===i&&(i=6e4),new Promise((function(o,a){var u=r.generateRequestId(),l={query:e,variables:n},s=t||r.apiVersion;window.parent.postMessage({method:"api",args:{params:l,apiVersion:s},requestId:u},"*");var d=setTimeout((function(){a(new Error("Request timed out"))}),i),c=r.addListener(u,(function(e){clearTimeout(d),c(),e.errorMessage?a(new Error("".concat(e.errorMessage," - ").concat(e.data))):o(e)}))}))},e.prototype.addListener=function(e,n){var t=this,i=this.listeners[e]||new Set;return i.add(n),this.listeners[e]=i,function(){i.delete(n),0===i.size&&delete t.listeners[e]}},e.prototype.receiveMessage=function(e){var n=e.data.requestId,t=this.listeners[n];t&&t.forEach((function(n){return n(e.data)}))},e}();export{oe as ApiClient,t as AssetsSource,H as AvailableVersions,i as BoardAttributes,r as BoardKind,o as BoardObjectType,a as BoardSubscriberKind,u as BoardsOrderBy,Y as ChangeColumnValueOpDocument,Q as ChangeMultipleColumnValuesOpDocument,J as ChangeSimpleColumnValueOpDocument,l as ColumnProperty,s as ColumnType,z as CreateItemOpDocument,ie as DEFAULT_VERSION,d as DocBlockContentType,c as DocsOrderBy,m as DuplicateBoardType,_ as FileLinkValueKind,p as FirstDayOfTheWeek,g as FolderColor,f as FolderCustomIcon,h as FolderFontWeight,Z as GetBoardGroupsOpDocument,X as GetBoardItemsOpDocument,K as GetMeOpDocument,I as GroupAttributes,b as ItemsOrderByDirection,v as ItemsQueryOperator,O as ItemsQueryRuleOperator,N as Kind,te as MONDAY_API_ENDPOINT,$ as NotificationTargetType,y as NumberValueUnitDirection,D as PositionRelative,ae as SeamlessApiClient,C as State,j as UserFieldsFragmentDoc,E as UserKind,T as VersionKind,S as WebhookEventType,A as WorkspaceKind,P as WorkspaceSubscriberKind,L as WorkspacesOrderBy,ne as getSdk};
import e from"graphql-tag";import{GraphQLClient as n}from"graphql-request";var t,i,o,r,a,u,l,s,d,c,m,_,p,I,g,f,h,b,v,E,O,N,A,P,L,C,D,T,y,S,R,$,w,G,B,M,U=function(){return U=Object.assign||function(e){for(var n,t=1,i=arguments.length;t<i;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},U.apply(this,arguments)};function k(e,n,t,i){return new(t||(t=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function u(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(a,u)}l((i=i.apply(e,n||[])).next())}))}function V(e,n){var t,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function u(u){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,u[0]&&(a=0)),a;)try{if(t=1,i&&(o=2&u[0]?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,i=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(e,a)}catch(e){u=[6,e],i=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,l])}}}function q(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}"function"==typeof SuppressedError&&SuppressedError,function(e){e.All="all",e.Columns="columns",e.Gallery="gallery"}(t||(t={})),function(e){e.Communication="communication",e.Description="description",e.Name="name"}(i||(i={})),function(e){e.Assignee="assignee",e.Collaborators="collaborators",e.Everyone="everyone",e.Owners="owners"}(o||(o={})),function(e){e.Private="private",e.Public="public",e.Share="share"}(r||(r={})),function(e){e.Board="board",e.CustomObject="custom_object",e.Document="document",e.SubItemsBoard="sub_items_board"}(a||(a={})),function(e){e.Owner="owner",e.Subscriber="subscriber"}(u||(u={})),function(e){e.AnyAssigneeColumn="any_assignee_column"}(l||(l={})),function(e){e.CreatedAt="created_at",e.UsedAt="used_at"}(s||(s={})),function(e){e.Description="description",e.Title="title"}(d||(d={})),function(e){e.AutoNumber="auto_number",e.BoardRelation="board_relation",e.Button="button",e.Checkbox="checkbox",e.ColorPicker="color_picker",e.Country="country",e.CreationLog="creation_log",e.Date="date",e.Dependency="dependency",e.Doc="doc",e.Dropdown="dropdown",e.Email="email",e.File="file",e.Formula="formula",e.Group="group",e.Hour="hour",e.Integration="integration",e.ItemAssignees="item_assignees",e.ItemId="item_id",e.LastUpdated="last_updated",e.Link="link",e.Location="location",e.LongText="long_text",e.Mirror="mirror",e.Name="name",e.Numbers="numbers",e.People="people",e.Person="person",e.Phone="phone",e.Progress="progress",e.Rating="rating",e.Status="status",e.Subtasks="subtasks",e.Tags="tags",e.Team="team",e.Text="text",e.TimeTracking="time_tracking",e.Timeline="timeline",e.Unsupported="unsupported",e.Vote="vote",e.Week="week",e.WorldClock="world_clock"}(c||(c={})),function(e){e.BrinkPink="BRINK_PINK",e.CelticBlue="CELTIC_BLUE",e.CornflowerBlue="CORNFLOWER_BLUE",e.DingyDungeon="DINGY_DUNGEON",e.GoGreen="GO_GREEN",e.Gray="GRAY",e.LightDeepPink="LIGHT_DEEP_PINK",e.LightHotPink="LIGHT_HOT_PINK",e.MayaBlue="MAYA_BLUE",e.MediumTurquoise="MEDIUM_TURQUOISE",e.ParadisePink="PARADISE_PINK",e.PhilippineGreen="PHILIPPINE_GREEN",e.PhilippineYellow="PHILIPPINE_YELLOW",e.SlateBlue="SLATE_BLUE",e.VividCerulean="VIVID_CERULEAN",e.YankeesBlue="YANKEES_BLUE",e.YellowGreen="YELLOW_GREEN",e.YellowOrange="YELLOW_ORANGE"}(m||(m={})),function(e){e.Ascending="ASCENDING",e.Camera="CAMERA",e.Conference="CONFERENCE",e.Flag="FLAG",e.Gift="GIFT",e.Headphones="HEADPHONES",e.Homekeys="HOMEKEYS",e.Location="LOCATION",e.Notebook="NOTEBOOK",e.Paperplane="PAPERPLANE",e.Plane="PLANE",e.Pliers="PLIERS",e.Tripod="TRIPOD",e.Twoflags="TWOFLAGS",e.Utencils="UTENCILS"}(_||(_={})),function(e){e.Monthly="MONTHLY",e.Yearly="YEARLY"}(p||(p={})),function(e){e.BulletedList="bulleted_list",e.CheckList="check_list",e.Code="code",e.Divider="divider",e.Image="image",e.LargeTitle="large_title",e.Layout="layout",e.MediumTitle="medium_title",e.NormalText="normal_text",e.NoticeBox="notice_box",e.NumberedList="numbered_list",e.Quote="quote",e.SmallTitle="small_title",e.Table="table",e.Video="video"}(I||(I={})),function(e){e.CreatedAt="created_at",e.UsedAt="used_at"}(g||(g={})),function(e){e.DuplicateBoardWithPulses="duplicate_board_with_pulses",e.DuplicateBoardWithPulsesAndUpdates="duplicate_board_with_pulses_and_updates",e.DuplicateBoardWithStructure="duplicate_board_with_structure"}(f||(f={})),function(e){e.Box="box",e.Dropbox="dropbox",e.GoogleDrive="google_drive",e.Link="link",e.Onedrive="onedrive"}(h||(h={})),function(e){e.Monday="monday",e.Sunday="sunday"}(b||(b={})),function(e){e.Aquamarine="AQUAMARINE",e.BrightBlue="BRIGHT_BLUE",e.BrightGreen="BRIGHT_GREEN",e.ChiliBlue="CHILI_BLUE",e.DarkOrange="DARK_ORANGE",e.DarkPurple="DARK_PURPLE",e.DarkRed="DARK_RED",e.DoneGreen="DONE_GREEN",e.Indigo="INDIGO",e.Lipstick="LIPSTICK",e.Null="NULL",e.Purple="PURPLE",e.SofiaPink="SOFIA_PINK",e.StuckRed="STUCK_RED",e.Sunset="SUNSET",e.WorkingOrange="WORKING_ORANGE"}(v||(v={})),function(e){e.Folder="FOLDER",e.Morebelow="MOREBELOW",e.Morebelowfilled="MOREBELOWFILLED",e.Null="NULL",e.Work="WORK"}(E||(E={})),function(e){e.FontWeightBold="FONT_WEIGHT_BOLD",e.FontWeightLight="FONT_WEIGHT_LIGHT",e.FontWeightNormal="FONT_WEIGHT_NORMAL",e.FontWeightVeryLight="FONT_WEIGHT_VERY_LIGHT",e.Null="NULL"}(O||(O={})),function(e){e.Color="color",e.Position="position",e.RelativePositionAfter="relative_position_after",e.RelativePositionBefore="relative_position_before",e.Title="title"}(N||(N={})),function(e){e.Asc="asc",e.Desc="desc"}(A||(A={})),function(e){e.And="and",e.Or="or"}(P||(P={})),function(e){e.AnyOf="any_of",e.Between="between",e.ContainsTerms="contains_terms",e.ContainsText="contains_text",e.EndsWith="ends_with",e.GreaterThan="greater_than",e.GreaterThanOrEquals="greater_than_or_equals",e.IsEmpty="is_empty",e.IsNotEmpty="is_not_empty",e.LowerThan="lower_than",e.LowerThanOrEqual="lower_than_or_equal",e.NotAnyOf="not_any_of",e.NotContainsText="not_contains_text",e.StartsWith="starts_with",e.WithinTheLast="within_the_last",e.WithinTheNext="within_the_next"}(L||(L={})),function(e){e.Person="person",e.Team="team"}(C||(C={})),function(e){e.Post="Post",e.Project="Project"}(D||(D={})),function(e){e.Left="left",e.Right="right"}(T||(T={})),function(e){e.AfterAt="after_at",e.BeforeAt="before_at"}(y||(y={})),function(e){e.Active="active",e.All="all",e.Archived="archived",e.Deleted="deleted"}(S||(S={})),function(e){e.All="all",e.Guests="guests",e.NonGuests="non_guests",e.NonPending="non_pending"}(R||(R={})),function(e){e.Current="current",e.Deprecated="deprecated",e.Dev="dev",e.Maintenance="maintenance",e.OldMaintenance="old__maintenance",e.OldPreviousMaintenance="old_previous_maintenance",e.PreviousMaintenance="previous_maintenance",e.ReleaseCandidate="release_candidate"}($||($={})),function(e){e.ChangeColumnValue="change_column_value",e.ChangeName="change_name",e.ChangeSpecificColumnValue="change_specific_column_value",e.ChangeStatusColumnValue="change_status_column_value",e.ChangeSubitemColumnValue="change_subitem_column_value",e.ChangeSubitemName="change_subitem_name",e.CreateColumn="create_column",e.CreateItem="create_item",e.CreateSubitem="create_subitem",e.CreateSubitemUpdate="create_subitem_update",e.CreateUpdate="create_update",e.DeleteUpdate="delete_update",e.EditUpdate="edit_update",e.ItemArchived="item_archived",e.ItemDeleted="item_deleted",e.ItemMovedToAnyGroup="item_moved_to_any_group",e.ItemMovedToSpecificGroup="item_moved_to_specific_group",e.ItemRestored="item_restored",e.MoveSubitem="move_subitem",e.SubitemArchived="subitem_archived",e.SubitemDeleted="subitem_deleted"}(w||(w={})),function(e){e.Closed="closed",e.Open="open"}(G||(G={})),function(e){e.Owner="owner",e.Subscriber="subscriber"}(B||(B={})),function(e){e.CreatedAt="created_at"}(M||(M={}));var F,W,x,H,Y,K,j,J,Q,z=e(F||(F=q(["\n fragment UserFields on User {\n id\n name\n email\n }\n"],["\n fragment UserFields on User {\n id\n name\n email\n }\n"]))),X=e(W||(W=q(["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"],["\n query getMeOp {\n me {\n ...UserFields\n }\n }\n ","\n"])),z),Z=e(x||(x=q(["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeSimpleColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: String!) {\n change_simple_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),ee=e(H||(H=q(["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"],["\n mutation changeColumnValueOp($boardId: ID!, $itemId: ID!, $columnId: String!, $value: JSON!) {\n change_column_value(board_id: $boardId, item_id: $itemId, column_id: $columnId, value: $value) {\n id\n }\n }\n"]))),ne=e(Y||(Y=q(["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"],["\n mutation createItemOp($boardId: ID!, $groupId: String!, $itemName: String!) {\n create_item(board_id: $boardId, group_id: $groupId, item_name: $itemName) {\n id\n name\n }\n }\n"]))),te=e(K||(K=q(["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"],["\n mutation changeMultipleColumnValuesOp($boardId: ID!, $itemId: ID!, $columnValues: JSON!) {\n change_multiple_column_values(board_id: $boardId, item_id: $itemId, column_values: $columnValues) {\n id\n name\n column_values {\n id\n value\n }\n }\n }\n"]))),ie=e(j||(j=q(["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"],["\n query getBoardItemsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n items_page {\n items {\n id\n name\n column_values {\n id\n type\n value\n }\n }\n }\n }\n }\n"]))),oe=e(J||(J=q(["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"],["\n query getBoardGroupsOp($ids: [ID!]!) {\n boards(ids: $ids) {\n groups {\n id\n title\n }\n }\n }\n"]))),re=function(e,n,t,i){return e()};function ae(e,n){return void 0===n&&(n=re),{getMeOp:function(t,i){return n((function(n){return e.request(X,t,U(U({},i),n))}),"getMeOp","query",t)},changeSimpleColumnValueOp:function(t,i){return n((function(n){return e.request(Z,t,U(U({},i),n))}),"changeSimpleColumnValueOp","mutation",t)},changeColumnValueOp:function(t,i){return n((function(n){return e.request(ee,t,U(U({},i),n))}),"changeColumnValueOp","mutation",t)},createItemOp:function(t,i){return n((function(n){return e.request(ne,t,U(U({},i),n))}),"createItemOp","mutation",t)},changeMultipleColumnValuesOp:function(t,i){return n((function(n){return e.request(te,t,U(U({},i),n))}),"changeMultipleColumnValuesOp","mutation",t)},getBoardItemsOp:function(t,i){return n((function(n){return e.request(ie,t,U(U({},i),n))}),"getBoardItemsOp","query",t)},getBoardGroupsOp:function(t,i){return n((function(n){return e.request(oe,t,U(U({},i),n))}),"getBoardGroupsOp","query",t)}}}!function(e){e.DEPRECATED="deprecated",e.MAINTENANCE="maintenance",e.CURRENT="current",e.RELEASE_CANDIDATE="release_candidate",e.DEV="dev",e.CURRENT_VERSION="2024-10"}(Q||(Q={}));var ue="https://api.monday.com/v2",le=Q.CURRENT_VERSION,se="5.0.1",de=function(e,t){void 0===t&&(t=le);var i=this;this.query=function(e,n){return k(i,void 0,void 0,(function(){return V(this,(function(t){switch(t.label){case 0:return[4,this.client.request(e,n)];case 1:return[2,t.sent()]}}))}))},this.apiVersion=t;var o=function(){if(process.env.MONDAY_API_ENDPOINT)return process.env.MONDAY_API_ENDPOINT;var e=process.env.PLATFORM_API;if(e)try{var n=JSON.parse(e);if(n.PLATFORM_API_ENDPOINT)return n.PLATFORM_API_ENDPOINT}catch(e){console.error("Failed to parse PLATFORM_API secret",e)}return ue}();this.client=new n(o,{headers:{"Content-Type":"application/json",Authorization:e,"API-Version":this.apiVersion,"Api-Sdk-Version":se}}),this.operations=ae(this.client)},ce=function(){function e(e){void 0===e&&(e=le),this.listeners={},this.generateRequestId=function(){return Math.random().toString(36).substring(2,9)},this.apiVersion=e,window.addEventListener("message",this.receiveMessage.bind(this),!1)}return e.prototype.query=function(e,n,t,i){var o=this;return void 0===i&&(i=6e4),new Promise((function(r,a){var u=o.generateRequestId(),l={query:e,variables:n},s=t||o.apiVersion;window.parent.postMessage({method:"api",args:{params:l,apiVersion:s},requestId:u},"*");var d=setTimeout((function(){a(new Error("Request timed out"))}),i),c=o.addListener(u,(function(e){clearTimeout(d),c(),e.errorMessage?a(new Error("".concat(e.errorMessage," - ").concat(e.data))):r(e)}))}))},e.prototype.addListener=function(e,n){var t=this,i=this.listeners[e]||new Set;return i.add(n),this.listeners[e]=i,function(){i.delete(n),0===i.size&&delete t.listeners[e]}},e.prototype.receiveMessage=function(e){var n=e.data.requestId,t=this.listeners[n];t&&t.forEach((function(n){return n(e.data)}))},e}();export{de as ApiClient,t as AssetsSource,Q as AvailableVersions,i as BoardAttributes,o as BoardEditPermissions,r as BoardKind,a as BoardObjectType,u as BoardSubscriberKind,l as BoardViewPermissions,s as BoardsOrderBy,ee as ChangeColumnValueOpDocument,te as ChangeMultipleColumnValuesOpDocument,Z as ChangeSimpleColumnValueOpDocument,d as ColumnProperty,c as ColumnType,ne as CreateItemOpDocument,m as CustomActivityColor,_ as CustomActivityIcon,le as DEFAULT_VERSION,p as DiscountPeriod,I as DocBlockContentType,g as DocsOrderBy,f as DuplicateBoardType,h as FileLinkValueKind,b as FirstDayOfTheWeek,v as FolderColor,E as FolderCustomIcon,O as FolderFontWeight,oe as GetBoardGroupsOpDocument,ie as GetBoardItemsOpDocument,X as GetMeOpDocument,N as GroupAttributes,A as ItemsOrderByDirection,P as ItemsQueryOperator,L as ItemsQueryRuleOperator,C as Kind,ue as MONDAY_API_ENDPOINT,D as NotificationTargetType,T as NumberValueUnitDirection,y as PositionRelative,ce as SeamlessApiClient,S as State,z as UserFieldsFragmentDoc,R as UserKind,$ as VersionKind,w as WebhookEventType,G as WorkspaceKind,B as WorkspaceSubscriberKind,M as WorkspacesOrderBy,ae as getSdk};
//# sourceMappingURL=index.js.map
{
"name": "@mondaydotcomorg/api",
"version": "5.0.0",
"version": "5.0.1",
"description": "monday.com API client",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc