Allow viewers to request collaboration on posts
فشلت بعض الفحوصات
Deploy To Ghaymah / deploy (push) Has been cancelled

هذا الالتزام موجود في:
boutmoun123
2026-06-10 20:30:03 +03:00
الأصل 48ea432669
التزام a3628d19a2
5 ملفات معدلة مع 274 إضافات و40 حذوفات

عرض الملف

@@ -3338,13 +3338,29 @@
}
],
"body": {
"mode": "raw",
"raw": "{\n \"targetUserId\": \"{{targetUserId}}\",\n \"collaborationType\": \"{{collaborationType}}\",\n \"message\": \"{{collaborationMessage}}\",\n \"attachmentUrl\": \"{{collaborationAttachmentUrl}}\",\n \"attachmentType\": \"{{collaborationAttachmentType}}\"\n}",
"options": {
"raw": {
"language": "json"
"mode": "formdata",
"formdata": [
{
"key": "collaborationType",
"value": "{{collaborationType}}",
"type": "text"
},
{
"key": "message",
"value": "حابب شارك بتعاون على هذا البوست",
"type": "text"
},
{
"key": "attachmentType",
"value": "{{collaborationAttachmentType}}",
"type": "text"
},
{
"key": "attachmentUrl",
"type": "file",
"src": []
}
}
]
}
},
"event": [
@@ -3368,6 +3384,62 @@
}
]
},
{
"name": "Create General Collaboration Request",
"request": {
"method": "POST",
"url": "{{baseUrl}}/users/{{targetUserId}}/collaboration-requests",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "collaborationType",
"value": "{{collaborationType}}",
"type": "text"
},
{
"key": "message",
"value": "حابب نتعاون على عمل جديد",
"type": "text"
},
{
"key": "attachmentType",
"value": "{{collaborationAttachmentType}}",
"type": "text"
},
{
"key": "attachmentUrl",
"type": "file",
"src": []
}
]
}
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Status is 200 or 201', function () { pm.expect([200, 201]).to.include(pm.response.code); });",
"const json = pm.response.json();",
"pm.expect(json).to.have.property('request');",
"pm.environment.set('collaborationRequestId', json.request._id || json.request.id);",
"pm.test('General collaboration request has no post', function () {",
" pm.expect(json.request.postId === null || typeof json.request.postId === 'undefined').to.equal(true);",
" pm.expect(json.request).to.have.property('status', 'pending');",
"});"
]
}
}
]
},
{
"name": "List My Collaboration Requests",
"request": {
@@ -6183,6 +6255,117 @@
}
]
},
{
"name": "Music World",
"item": [
{
"name": "Get Music World Config",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"url": "{{baseUrl}}/music-world",
"description": "Arabic-friendly static screen metadata and optional shortcut cards. The main Instagram-like grid should use Music World Explore Grid."
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Status is 200', function () { pm.response.to.have.status(200); });",
"const json = pm.response.json();",
"pm.expect(json).to.have.property('title', '???? ????????');",
"pm.expect(json).to.have.property('searchPlaceholder');",
"pm.expect(json.cards).to.be.an('array');",
"pm.expect(json.sections).to.be.an('array');"
]
}
}
]
},
{
"name": "Music World Explore Grid",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"url": "{{baseUrl}}/music-world/explore?page=1&limit=20&cursor={{feedCursor}}",
"description": "Main Flutter Music World grid. Uses real feed explore posts and maps them to displayUrl/thumbnailUrl for Instagram-like explore UI."
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Status is 200', function () { pm.response.to.have.status(200); });",
"const json = pm.response.json();",
"pm.expect(json.items).to.be.an('array');",
"pm.expect(json).to.have.property('pagination');",
"pm.expect(json.pagination).to.have.property('hasNextPage');",
"if ((json.items || []).length) {",
" const item = json.items[0];",
" pm.expect(item).to.have.property('id');",
" pm.expect(item).to.have.property('postType');",
" pm.expect(item).to.have.property('thumbnailUrl');",
" pm.expect(item).to.have.property('displayUrl');",
" pm.expect(item).to.have.property('media');",
" pm.expect(item).to.have.property('author');",
" pm.expect(item).to.have.property('engagement');",
" pm.expect(item).to.have.property('isLiked');",
" pm.expect(item).to.have.property('isSaved');",
"}"
]
}
}
]
},
{
"name": "Music World Search Posts",
"request": {
"method": "GET",
"header": [
{
"key": "Authorization",
"value": "Bearer {{accessToken}}"
}
],
"url": "{{baseUrl}}/music-world/search?q={{searchQuery}}&page=1&limit={{searchLimit}}",
"description": "Search bar endpoint for Music World. Searches real posts/media, not static categories."
},
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"pm.test('Status is 200', function () { pm.response.to.have.status(200); });",
"const json = pm.response.json();",
"pm.expect(json.items).to.be.an('array');",
"pm.expect(json).to.have.property('pagination');",
"if ((json.items || []).length) {",
" const item = json.items[0];",
" pm.expect(item).to.have.property('id');",
" pm.expect(item).to.have.property('postType');",
" pm.expect(item).to.have.property('displayUrl');",
" pm.expect(item).to.have.property('author');",
"}"
]
}
}
]
}
]
},
{
"name": "Smoke",
"item": [
@@ -10226,4 +10409,4 @@
"value": "{{accessToken}}"
}
]
}
}

عرض الملف

@@ -2810,13 +2810,29 @@
}
],
"body": {
"mode": "raw",
"raw": "{\n \"targetUserId\": \"{{targetUserId}}\",\n \"collaborationType\": \"{{collaborationType}}\",\n \"message\": \"{{collaborationMessage}}\",\n \"attachmentUrl\": \"{{collaborationAttachmentUrl}}\",\n \"attachmentType\": \"{{collaborationAttachmentType}}\"\n}",
"options": {
"raw": {
"language": "json"
"mode": "formdata",
"formdata": [
{
"key": "collaborationType",
"value": "{{collaborationType}}",
"type": "text"
},
{
"key": "message",
"value": "حابب شارك بتعاون على هذا البوست",
"type": "text"
},
{
"key": "attachmentType",
"value": "{{collaborationAttachmentType}}",
"type": "text"
},
{
"key": "attachmentUrl",
"type": "file",
"src": []
}
}
]
}
},
"event": [
@@ -2852,13 +2868,29 @@
}
],
"body": {
"mode": "raw",
"raw": "{\n \"collaborationType\": \"{{collaborationType}}\",\n \"message\": \"{{collaborationMessage}}\",\n \"attachmentUrl\": \"{{collaborationAttachmentUrl}}\",\n \"attachmentType\": \"{{collaborationAttachmentType}}\"\n}",
"options": {
"raw": {
"language": "json"
"mode": "formdata",
"formdata": [
{
"key": "collaborationType",
"value": "{{collaborationType}}",
"type": "text"
},
{
"key": "message",
"value": "حابب نتعاون على عمل جديد",
"type": "text"
},
{
"key": "attachmentType",
"value": "{{collaborationAttachmentType}}",
"type": "text"
},
{
"key": "attachmentUrl",
"type": "file",
"src": []
}
}
]
}
},
"event": [