diff --git a/src/tests/responses/trello-member-get.json b/src/tests/responses/trello-member-get.json new file mode 100644 index 0000000..15a4e73 --- /dev/null +++ b/src/tests/responses/trello-member-get.json @@ -0,0 +1,2366 @@ +[ + { + "id": "5db72d5517a6135e166fd862", + "nodeId": "ari:cloud:trello::board/workspace/60ae020570a89b46695aae66/5db72d5517a6135e166fd862", + "name": "0 Business: Cossmass Infinities", + "desc": "", + "descData": null, + "closed": false, + "dateClosed": null, + "idOrganization": "60ae020570a89b46695aae66", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/kWgYNeqh/0-business-cossmass-infinities", + "prefs": { + "permissionLevel": "private", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "admins", + "selfJoin": false, + "cardCovers": false, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": true, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "5d6ff7a71cb8f4728ee296b6", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1330x2048/fbca9b0152b03e80427d46313c352f88/photo-1567540017993-c888313000b1", + "backgroundTile": false, + "backgroundBrightness": "dark", + "sharedSourceUrl": "https://images.unsplash.com/photo-1567540017993-c888313000b1?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjcwNjh9&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 65, + "height": 100, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/65x100/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 125, + "height": 192, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/125x192/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 312, + "height": 480, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/312x480/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 623, + "height": 960, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/623x960/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 665, + "height": 1024, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/665x1024/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 831, + "height": 1280, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/831x1280/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 1039, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1039x1600/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 1247, + "height": 1920, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1247x1920/38d1c66aa13fe8e5a0a4998992a57d9d/photo-1567540017993-c888313000b1.jpg" + }, + { + "width": 1330, + "height": 2048, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1330x2048/fbca9b0152b03e80427d46313c352f88/photo-1567540017993-c888313000b1" + } + ], + "backgroundBottomColor": "#1b1c10", + "backgroundTopColor": "#41343c", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "kWgYNeqh", + "subscribed": false, + "labelNames": { + "green": "", + "yellow": "", + "orange": "", + "red": "Priority", + "purple": "", + "blue": "", + "sky": "", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2024-11-28T06:00:46.753Z", + "dateLastView": "2022-11-05T21:08:10.919Z", + "shortUrl": "https://trello.com/b/kWgYNeqh", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "23108", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": null, + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": "5d999fc87ac5a442f45cb8eb", + "type": null, + "lists": [ + { + "id": "5dbd5a88b09f840da3174607", + "name": "Inbox", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 1024, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "6111217568bb1c4e776454ea", + "name": "Icebox", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 1536, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db72d67065e9f2d74e8ced6", + "name": "To Do", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 2048, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db72d6771317223e211137e", + "name": "Doing", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 4096, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db72d6b99e4202e77dca13c", + "name": "Done", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 4608, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db72d6809328b601e89f71d", + "name": "Waiting", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 5120, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db832319b40204b7b01f228", + "name": "Resources", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 6144, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db82eac6d953a6029245c88", + "name": "Decisions", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 7168, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5dbae09f8f45782cafc09b2c", + "name": "Recurring Costs", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 7680, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5db855cc712dfb73787d1b15", + "name": "Ideas", + "closed": false, + "color": null, + "idBoard": "5db72d5517a6135e166fd862", + "pos": 8192, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "5db72d5517a6135e166fd863", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + }, + { + "id": "5ed7a585ab8c0a017752d0b5", + "idMember": "5e9965ddadf9331aef472a96", + "memberType": "normal", + "unconfirmed": false, + "deactivated": false + } + ] + }, + { + "id": "5ecbae5cbf50fc4fa0e541fd", + "nodeId": "ari:cloud:trello::board/workspace/60ae020570a89b46695aae66/5ecbae5cbf50fc4fa0e541fd", + "name": "3 Editing: Cossmass Infinities", + "desc": "", + "descData": null, + "closed": true, + "dateClosed": "2023-02-03T14:08:27.015Z", + "idOrganization": "60ae020570a89b46695aae66", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/4yHPRhO7/3-editing-cossmass-infinities", + "prefs": { + "permissionLevel": "private", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "members", + "selfJoin": false, + "cardCovers": true, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": true, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "5ec555ba8840e541f247bd3c", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/fc002594d99b978797bb8b1031d392e5/photo-1589952652973-f72cc8cff072", + "backgroundTile": false, + "backgroundBrightness": "light", + "sharedSourceUrl": "https://images.unsplash.com/photo-1589952652973-f72cc8cff072?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjcwNjZ9&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 67, + "height": 100, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/67x100/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 128, + "height": 192, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/128x192/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 320, + "height": 480, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/320x480/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 641, + "height": 960, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/641x960/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 684, + "height": 1024, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/684x1024/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 854, + "height": 1280, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/854x1280/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 1068, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1068x1600/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 1282, + "height": 1920, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1282x1920/0fbecc1fb644254bf03c966d998307dc/photo-1589952652973-f72cc8cff072.jpg" + }, + { + "width": 1367, + "height": 2048, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/fc002594d99b978797bb8b1031d392e5/photo-1589952652973-f72cc8cff072" + } + ], + "backgroundBottomColor": "#372923", + "backgroundTopColor": "#ccccd1", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "4yHPRhO7", + "subscribed": false, + "labelNames": { + "green": "original", + "yellow": "reprint", + "orange": "Steampunk", + "red": "Diversity", + "purple": "Fantasy", + "blue": "Science Fiction", + "sky": "Super Hero", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2023-02-03T14:08:04.681Z", + "dateLastView": "2023-02-03T14:08:32.040Z", + "shortUrl": "https://trello.com/b/4yHPRhO7", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "3877", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": null, + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": "5d999fc87ac5a442f45cb8eb", + "type": null, + "lists": [ + { + "id": "5dc4a5568b91e537c320b519", + "name": "Offered To Buy", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 16384, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5e63fe157bbe2c65a74f61dc", + "name": "Accepted", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 35071.984375, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5de1801e37f6fa82b2aad397", + "name": "Awaiting Author Approval", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 37375.96875, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5e667d40e0bf5b3a5d90a90c", + "name": "Approved by Author", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 41983.9375, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "6223e559b0ea254f7b949e8d", + "name": "Contract Sent", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 446975.46875, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "623ccc60aeb4d362b802f43c", + "name": "Contract Accepted", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 649471.234375, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "60fbc72fa9279c112f512bec", + "name": "The Third Year (December 2023)", + "closed": false, + "color": null, + "idBoard": "5ecbae5cbf50fc4fa0e541fd", + "pos": 1114111, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "5ecbae5cbf50fc4fa0e541fe", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + }, + { + "id": "5ed7a5a59547a03350c321d0", + "idMember": "5e9965ddadf9331aef472a96", + "memberType": "normal", + "unconfirmed": false, + "deactivated": false + } + ] + }, + { + "id": "5eccb96b04b4dc5666c64b7c", + "nodeId": "ari:cloud:trello::board/workspace/60ae020570a89b46695aae66/5eccb96b04b4dc5666c64b7c", + "name": "4 Published: Cossmass Infinities", + "desc": "", + "descData": null, + "closed": false, + "dateClosed": null, + "idOrganization": "60ae020570a89b46695aae66", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/23WYNmUU/4-published-cossmass-infinities", + "prefs": { + "permissionLevel": "private", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "members", + "selfJoin": false, + "cardCovers": true, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": false, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "5ecc9f06dd97866e7108a986", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c675dc447afa6380566e25697420129c/photo-1590418606746-018840f9cd0f", + "backgroundTile": false, + "backgroundBrightness": "dark", + "sharedSourceUrl": "https://images.unsplash.com/photo-1590418606746-018840f9cd0f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjcwNjh9&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 67, + "height": 100, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/67x100/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 128, + "height": 192, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/128x192/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 320, + "height": 480, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/320x480/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 640, + "height": 960, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/640x960/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 683, + "height": 1024, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/683x1024/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 853, + "height": 1280, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/853x1280/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 1066, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1066x1600/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 1280, + "height": 1920, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x1920/843caa667c7accce67e872fd40523c69/photo-1590418606746-018840f9cd0f.jpg" + }, + { + "width": 1365, + "height": 2048, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/c675dc447afa6380566e25697420129c/photo-1590418606746-018840f9cd0f" + } + ], + "backgroundBottomColor": "#040c17", + "backgroundTopColor": "#081b30", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "23WYNmUU", + "subscribed": false, + "labelNames": { + "green": "Original", + "yellow": "Reprint", + "orange": "Steampunk", + "red": "Diversity", + "purple": "Fantasy", + "blue": "Science Fiction", + "sky": "Super Hero", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2022-12-10T11:01:27.897Z", + "dateLastView": "2022-04-23T10:52:31.930Z", + "shortUrl": "https://trello.com/b/23WYNmUU", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "744", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": null, + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": "5d999fc87ac5a442f45cb8eb", + "type": null, + "lists": [ + { + "id": "60fbc726a3903923507a2338", + "name": "The Second Year (December 2022)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 128, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "60fbc6c28fc1951d2df2ee91", + "name": "Issue 9 (July 2022)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 256, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "60fbc6b75c4e737f11ed0a4e", + "name": "Issue 8 (April 2022)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 512, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5dc1a3cc9443cf290e105a9e", + "name": "Issue 7 (January 2022)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 1024, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5de68ade15e1dc10b583219e", + "name": "The First Year (December 2021)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 1536, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5de180297a9256384304b895", + "name": "Issue 6 (September 2021)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 2048, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "608d49098982605e432a5ca8", + "name": "Issue 5 (May 2021)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 4096, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5feee474f6196034f2240dd9", + "name": "Issue 4 (January 2021)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 8192, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5ecbafb3e45d5c6887dad01d", + "name": "Issue 3 (September 2020)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 16384, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5dc089109931266c657dbbd5", + "name": "Issue 2 (May 2020)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 65536, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5ecbaf7e12407531cf59587f", + "name": "Issue 1 (January 2020)", + "closed": false, + "color": null, + "idBoard": "5eccb96b04b4dc5666c64b7c", + "pos": 81920, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "5eccb96b04b4dc5666c64b7d", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + }, + { + "id": "5ed7a5c13fed3116ca679185", + "idMember": "5e9965ddadf9331aef472a96", + "memberType": "normal", + "unconfirmed": false, + "deactivated": false + } + ] + }, + { + "id": "62ce6644f1613e2eb5c23b35", + "nodeId": "ari:cloud:trello::board/workspace/60ae034415aa230ab2ef596d/62ce6644f1613e2eb5c23b35", + "name": "Daily Notes 2022", + "desc": "", + "descData": null, + "closed": false, + "dateClosed": null, + "idOrganization": "60ae034415aa230ab2ef596d", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/kdAaLE1K/daily-notes-2022", + "prefs": { + "permissionLevel": "org", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "members", + "selfJoin": true, + "cardCovers": true, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": false, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "62ce4e114295df64218b6d2b", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/a944ca5a6d460984c467c0f148107ac0/photo-1657586640569-4a3d4577328c", + "backgroundTile": false, + "backgroundBrightness": "dark", + "sharedSourceUrl": "https://images.unsplash.com/photo-1657586640569-4a3d4577328c?ixid=Mnw3MDY2fDB8MXxjb2xsZWN0aW9ufDF8MzE3MDk5fHx8fHwyfHwxNjU3Njg3NTQx&ixlib=rb-1.2.1&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 132, + "height": 100, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/132x100/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 253, + "height": 192, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/253x192/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 480, + "height": 365, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/480x365/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 960, + "height": 729, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/960x729/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 1024, + "height": 778, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1024x778/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 1280, + "height": 973, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x973/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 1920, + "height": 1459, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1920x1459/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 2048, + "height": 1556, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2048x1556/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 2106, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2106x1600/a1fa06a3bd37e96d4912976ba3f5a722/photo-1657586640569-4a3d4577328c.jpg" + }, + { + "width": 2560, + "height": 1945, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/a944ca5a6d460984c467c0f148107ac0/photo-1657586640569-4a3d4577328c" + } + ], + "backgroundBottomColor": "#0c0c14", + "backgroundTopColor": "#1e3345", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "kdAaLE1K", + "subscribed": false, + "labelNames": { + "green": "", + "yellow": "", + "orange": "", + "red": "", + "purple": "", + "blue": "", + "sky": "", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2022-07-14T05:56:47.280Z", + "dateLastView": "2022-07-14T06:01:48.959Z", + "shortUrl": "https://trello.com/b/kdAaLE1K", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "53", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": null, + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": "5d999fc87ac5a442f45cb8eb", + "type": null, + "lists": [ + { + "id": "62ce665e3b71cd63fbb04ea4", + "name": "July", + "closed": false, + "color": null, + "idBoard": "62ce6644f1613e2eb5c23b35", + "pos": 65535, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "62ce666deae66c2ea3169913", + "name": "August", + "closed": false, + "color": null, + "idBoard": "62ce6644f1613e2eb5c23b35", + "pos": 131071, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "62ce6644f1613e2eb5c23b3d", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + } + ] + }, + { + "id": "5e6cb04f4f9a8b071f151037", + "nodeId": "ari:cloud:trello::board/workspace/60ae034415aa230ab2ef596d/5e6cb04f4f9a8b071f151037", + "name": "DevProjects", + "desc": "Simple board to start on a project.\n\nEach list can hold items (cards) that represent ideas or tasks.\n\nThere 4 lists here:\n\n* **BRAINSTORM 🤔** : Ideas are created here. Here people can describe the idea following three simple questions: Why you wish to do it, What it is, how can you do it.\n\n* **TODO 📚**: Once the ideas is clearly defined, the task can move to #todo stage. Here the owner of the idea can move to #doing once s/he is ready. He can also wait a bit for other members to join.\n* **DOING ⚙️**: On-going\n* **DONE! 🙌🏽**: Finished\n\nYou could add other lists like **labels** holding labels (with colors) in order to tag each card by a label if you wish.", + "descData": null, + "closed": false, + "dateClosed": null, + "idOrganization": "60ae034415aa230ab2ef596d", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/9ltBSkNA/devprojects", + "prefs": { + "permissionLevel": "private", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "members", + "selfJoin": true, + "cardCovers": true, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": false, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "5e6a85be32376b62ac13e902", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/1ad3a3d75de075cbafe780a25e6f61a3/photo-1583826476986-5be438394228", + "backgroundTile": false, + "backgroundBrightness": "light", + "sharedSourceUrl": "https://images.unsplash.com/photo-1583826476986-5be438394228?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjcwNjZ9&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 75, + "height": 100, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/75x100/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 144, + "height": 192, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/144x192/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 360, + "height": 480, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/360x480/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 721, + "height": 960, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/721x960/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 769, + "height": 1024, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/769x1024/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 961, + "height": 1280, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/961x1280/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 1202, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1202x1600/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 1442, + "height": 1920, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1442x1920/1a984760421e2d696d5f4a3cd62a5ca4/photo-1583826476986-5be438394228.jpg" + }, + { + "width": 1538, + "height": 2048, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/1ad3a3d75de075cbafe780a25e6f61a3/photo-1583826476986-5be438394228" + } + ], + "backgroundBottomColor": "#cdb3ad", + "backgroundTopColor": "#c7c5d2", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "9ltBSkNA", + "subscribed": false, + "labelNames": { + "green": "Foo", + "yellow": "", + "orange": "", + "red": "", + "purple": "", + "blue": "", + "sky": "", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2022-12-01T18:40:40.174Z", + "dateLastView": "2022-12-01T18:57:37.354Z", + "shortUrl": "https://trello.com/b/9ltBSkNA", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "1905", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": "5e110382bbcd021dda283413", + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": null, + "type": null, + "lists": [ + { + "id": "5e6cb04f4f9a8b071f151038", + "name": "BRAINSTORM 🤔", + "closed": false, + "color": null, + "idBoard": "5e6cb04f4f9a8b071f151037", + "pos": 65535, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5e6cb04f4f9a8b071f151039", + "name": "TODO 📚", + "closed": false, + "color": null, + "idBoard": "5e6cb04f4f9a8b071f151037", + "pos": 131071, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5e6cb04f4f9a8b071f15103a", + "name": "DOING ⚙️", + "closed": false, + "color": null, + "idBoard": "5e6cb04f4f9a8b071f151037", + "pos": 196607, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "5e6cb04f4f9a8b071f15103b", + "name": "DONE! 🙌🏽", + "closed": false, + "color": null, + "idBoard": "5e6cb04f4f9a8b071f151037", + "pos": 262143, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "6251499fd108413e3afabac5", + "name": "Icebox ❄️", + "closed": false, + "color": null, + "idBoard": "5e6cb04f4f9a8b071f151037", + "pos": 327679, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "5e6cb0504f9a8b071f1510ec", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + } + ] + }, + { + "id": "5ddd02148100bc44f129a16e", + "nodeId": "ari:cloud:trello::board/workspace/60ae020570a89b46695aae66/5ddd02148100bc44f129a16e", + "name": "Fulfilment: Cossmass Infinities", + "desc": "", + "descData": null, + "closed": false, + "dateClosed": null, + "idOrganization": "60ae020570a89b46695aae66", + "idEnterprise": null, + "limits": { + "attachments": { + "perBoard": { + "status": "ok", + "disableAt": 36000, + "warnAt": 28800 + }, + "perCard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "boards": { + "totalMembersPerBoard": { + "status": "ok", + "disableAt": 1600, + "warnAt": 1280 + }, + "totalAccessRequestsPerBoard": { + "status": "ok", + "disableAt": 4000, + "warnAt": 3200 + } + }, + "cards": { + "openPerBoard": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "openPerList": { + "status": "ok", + "disableAt": 5000, + "warnAt": 4000 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 2000000, + "warnAt": 1600000 + }, + "totalPerList": { + "status": "ok", + "disableAt": 1000000, + "warnAt": 800000 + } + }, + "checklists": { + "perBoard": { + "status": "ok", + "disableAt": 1800000, + "warnAt": 1440000 + }, + "perCard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + } + }, + "checkItems": { + "perChecklist": { + "status": "ok", + "disableAt": 200, + "warnAt": 160 + } + }, + "customFields": { + "perBoard": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "customFieldOptions": { + "perField": { + "status": "ok", + "disableAt": 50, + "warnAt": 40 + } + }, + "labels": { + "perBoard": { + "status": "ok", + "disableAt": 1000, + "warnAt": 800 + } + }, + "lists": { + "openPerBoard": { + "status": "ok", + "disableAt": 500, + "warnAt": 400 + }, + "totalPerBoard": { + "status": "ok", + "disableAt": 3000, + "warnAt": 2400 + } + }, + "stickers": { + "perCard": { + "status": "ok", + "disableAt": 70, + "warnAt": 56 + } + }, + "reactions": { + "perAction": { + "status": "ok", + "disableAt": 900, + "warnAt": 720 + }, + "uniquePerAction": { + "status": "ok", + "disableAt": 17, + "warnAt": 14 + } + } + }, + "pinned": false, + "starred": false, + "url": "https://trello.com/b/rAjEe86K/fulfilment-cossmass-infinities", + "prefs": { + "permissionLevel": "private", + "hideVotes": false, + "voting": "disabled", + "comments": "members", + "invitations": "members", + "selfJoin": false, + "cardCovers": true, + "cardCounts": false, + "isTemplate": false, + "cardAging": "regular", + "calendarFeedEnabled": false, + "hiddenPluginBoardButtons": [], + "switcherViews": [ + { + "viewType": "Board", + "enabled": true + }, + { + "viewType": "Table", + "enabled": true + }, + { + "viewType": "Calendar", + "enabled": false + }, + { + "viewType": "Dashboard", + "enabled": false + }, + { + "viewType": "Timeline", + "enabled": false + }, + { + "viewType": "Map", + "enabled": false + } + ], + "background": "5ddc25fe8ffbae5b78bce77e", + "backgroundColor": null, + "backgroundImage": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/2de4a34c4193b74b9a2263b11da45e76/photo-1574558452538-7477c4a40b83", + "backgroundTile": false, + "backgroundBrightness": "dark", + "sharedSourceUrl": "https://images.unsplash.com/photo-1574558452538-7477c4a40b83?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjcwNjZ9&w=2560&h=2048&q=90", + "backgroundImageScaled": [ + { + "width": 140, + "height": 93, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/140x93/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 256, + "height": 171, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/256x171/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 480, + "height": 320, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/480x320/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 960, + "height": 640, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/960x640/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 1024, + "height": 683, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1024x683/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 1280, + "height": 854, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1280x854/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 1920, + "height": 1280, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/1920x1280/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 2048, + "height": 1366, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2048x1366/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 2400, + "height": 1600, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/2400x1600/b5c948014473d15f566a612c09d924bd/photo-1574558452538-7477c4a40b83.jpg" + }, + { + "width": 2560, + "height": 1707, + "url": "https://trello-backgrounds.s3.amazonaws.com/SharedBackground/original/2de4a34c4193b74b9a2263b11da45e76/photo-1574558452538-7477c4a40b83" + } + ], + "backgroundBottomColor": "#141c24", + "backgroundTopColor": "#b7b0b1", + "canBePublic": true, + "canBeEnterprise": true, + "canBeOrg": true, + "canBePrivate": true, + "canInvite": true + }, + "shortLink": "rAjEe86K", + "subscribed": false, + "labelNames": { + "green": "", + "yellow": "", + "orange": "", + "red": "Donating Refund", + "purple": "", + "blue": "", + "sky": "Cancelled Subscription", + "lime": "", + "pink": "", + "black": "", + "green_dark": "", + "yellow_dark": "", + "orange_dark": "", + "red_dark": "", + "purple_dark": "", + "blue_dark": "", + "sky_dark": "", + "lime_dark": "", + "pink_dark": "", + "black_dark": "", + "green_light": "", + "yellow_light": "", + "orange_light": "", + "red_light": "", + "purple_light": "", + "blue_light": "", + "sky_light": "", + "lime_light": "", + "pink_light": "", + "black_light": "" + }, + "powerUps": [], + "dateLastActivity": "2023-01-02T10:00:06.729Z", + "dateLastView": "2022-10-03T15:34:26.296Z", + "shortUrl": "https://trello.com/b/rAjEe86K", + "idTags": [], + "datePluginDisable": null, + "creationMethod": null, + "ixUpdate": "9216", + "templateGallery": null, + "enterpriseOwned": false, + "idBoardSource": null, + "premiumFeatures": [ + "additionalBoardBackgrounds", + "additionalStickers", + "customBoardBackgrounds", + "customEmoji", + "customStickers", + "plugins" + ], + "idMemberCreator": "5d999fc87ac5a442f45cb8eb", + "type": null, + "lists": [ + { + "id": "5dfbb9b11fdf5782a5c7bf28", + "name": "Inbox", + "closed": false, + "color": null, + "idBoard": "5ddd02148100bc44f129a16e", + "pos": 16383.75, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "622b0d2d419c1f8b8c389841", + "name": "Sub y3", + "closed": false, + "color": null, + "idBoard": "5ddd02148100bc44f129a16e", + "pos": 99039.68994140625, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + }, + { + "id": "61b4e4ede1b9d65d6cb8ad52", + "name": "Completed", + "closed": false, + "color": null, + "idBoard": "5ddd02148100bc44f129a16e", + "pos": 815103.5625, + "subscribed": false, + "softLimit": null, + "type": null, + "datasource": { + "filter": false + } + } + ], + "memberships": [ + { + "id": "5ddd02148100bc44f129a16f", + "idMember": "5d999fc87ac5a442f45cb8eb", + "memberType": "admin", + "unconfirmed": false, + "deactivated": false + }, + { + "id": "5ed7a5995f6a287e3d1d18ba", + "idMember": "5e9965ddadf9331aef472a96", + "memberType": "normal", + "unconfirmed": false, + "deactivated": false + } + ] + } +] \ No newline at end of file diff --git a/src/trello/mod.rs b/src/trello/mod.rs index c62482b..9518521 100644 --- a/src/trello/mod.rs +++ b/src/trello/mod.rs @@ -27,8 +27,8 @@ pub(crate) mod member; pub(crate) mod model; pub(crate) mod stack; -// #[cfg(test)] -// mod tests; +#[cfg(test)] +mod tests; pub(crate) fn url(path: impl Into) -> String { let path = path.into(); diff --git a/src/trello/tests/member/get.rs b/src/trello/tests/member/get.rs new file mode 100644 index 0000000..4811db4 --- /dev/null +++ b/src/trello/tests/member/get.rs @@ -0,0 +1,91 @@ +// +use super::*; + +#[rstest::fixture] +fn ctx() -> FullCtx { + let fs = given::a_filesystem(); + let trello_config = given::a_trello_config(); + + let mock_net = given::a_network(); + mock_net + .on() + .get("https://api.trello.com/1/members/me/boards") + .headers(HashMap::from([( + s!("authorization"), + f!( + "OAuth oauth_consumer_key=\"{}\", oauth_token=\"{}\"", + trello_config.api_key, + trello_config.api_secret + ), + )])) + .respond(StatusCode::OK) + .header("content-type", "application/json") + .body(include_str!( + "../../../tests/responses/trello-member-get.json" + )) + .expect("mock request"); + + FullCtx { + fs: fs.as_real(), + net: mock_net.into(), + prt: given::a_printer(), + cfg: AppConfig { + trello: trello_config, + nextcloud: given::a_nextcloud_config(), + }, + } +} + +#[rstest::rstest] +#[tokio::test] +async fn dump(ctx: FullCtx) { + //given + let prt = ctx.prt.clone(); + let prt = prt.as_test().unwrap(); + + //when + Command::Trello(TrelloCommand::Member(TrelloMemberCommand::Get { + dump: true, + })) + .execute(ctx) + .await + .expect("execute"); + + //then + let output = prt.output(); + assert_eq!( + output.trim(), + include_str!("../../../tests/responses/trello-member-get.json") + ); +} + +#[rstest::rstest] +#[tokio::test] +async fn no_dump(ctx: FullCtx) { + //given + let prt = ctx.prt.clone(); + let prt = prt.as_test().unwrap(); + + //when + Command::Trello(TrelloCommand::Member(TrelloMemberCommand::Get { + dump: false, + })) + .execute(ctx) + .await + .expect("execute"); + + //then + let output = prt.output(); + assert_eq!( + output.trim(), + [ + "5db72d5517a6135e166fd862:0 Business: Cossmass Infinities", + "5ecbae5cbf50fc4fa0e541fd:3 Editing: Cossmass Infinities", + "5eccb96b04b4dc5666c64b7c:4 Published: Cossmass Infinities", + "62ce6644f1613e2eb5c23b35:Daily Notes 2022", + "5e6cb04f4f9a8b071f151037:DevProjects", + "5ddd02148100bc44f129a16e:Fulfilment: Cossmass Infinities" + ] + .join("\n") + ); +} diff --git a/src/trello/tests/member/mod.rs b/src/trello/tests/member/mod.rs new file mode 100644 index 0000000..2563f63 --- /dev/null +++ b/src/trello/tests/member/mod.rs @@ -0,0 +1,4 @@ +// +use super::*; + +mod get; diff --git a/src/trello/tests/mod.rs b/src/trello/tests/mod.rs new file mode 100644 index 0000000..a746b37 --- /dev/null +++ b/src/trello/tests/mod.rs @@ -0,0 +1,27 @@ +#![allow(dead_code)] +#![allow(unused_imports)] +// +use std::collections::HashMap; + +use kxio::{ + net::{MockNet, StatusCode}, + print::Printer, +}; +use pretty_assertions::assert_eq as assert_peq; +use serde_json::json; + +use crate::{ + execute::Execute, + f, s, + tests::given, + trello::{ + board::TrelloBoardCommand, + card::TrelloCardCommand, + member::TrelloMemberCommand, + model::{TrelloBoardId, TrelloCardId}, + TrelloCommand, TrelloConfig, + }, + AppConfig, Command, FullCtx, +}; + +mod member;