@cleanmate/cip-sdk 1.0.6 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abis/Cleanup.d.ts +12 -0
- package/dist/abis/Cleanup.d.ts.map +1 -1
- package/dist/abis/Cleanup.js +15 -0
- package/dist/abis/Cleanup.js.map +1 -1
- package/dist/abis/GasMeter.d.ts +432 -0
- package/dist/abis/GasMeter.d.ts.map +1 -0
- package/dist/abis/GasMeter.js +569 -0
- package/dist/abis/GasMeter.js.map +1 -0
- package/dist/abis/NativePassport.d.ts +336 -0
- package/dist/abis/NativePassport.d.ts.map +1 -0
- package/dist/abis/NativePassport.js +440 -0
- package/dist/abis/NativePassport.js.map +1 -0
- package/dist/abis/RewardsManager.d.ts +4 -0
- package/dist/abis/RewardsManager.d.ts.map +1 -1
- package/dist/abis/RewardsManager.js +5 -0
- package/dist/abis/RewardsManager.js.map +1 -1
- package/dist/abis/Streak.d.ts +4 -0
- package/dist/abis/Streak.d.ts.map +1 -1
- package/dist/abis/Streak.js +5 -0
- package/dist/abis/Streak.js.map +1 -1
- package/dist/abis/UserRegistry.d.ts +0 -119
- package/dist/abis/UserRegistry.d.ts.map +1 -1
- package/dist/abis/UserRegistry.js +0 -152
- package/dist/abis/UserRegistry.js.map +1 -1
- package/dist/cleanup.d.ts.map +1 -1
- package/dist/cleanup.js +2 -1
- package/dist/cleanup.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/streak.d.ts.map +1 -1
- package/dist/streak.js +2 -1
- package/dist/streak.js.map +1 -1
- package/dist/subgraph/queries.d.ts +28 -10
- package/dist/subgraph/queries.d.ts.map +1 -1
- package/dist/subgraph/queries.js +110 -19
- package/dist/subgraph/queries.js.map +1 -1
- package/dist/subgraph/types.d.ts +90 -16
- package/dist/subgraph/types.d.ts.map +1 -1
- package/dist/user.d.ts +0 -1
- package/dist/user.d.ts.map +1 -1
- package/dist/user.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,35 +3,35 @@
|
|
|
3
3
|
* All queries support complete filtering, ordering, and pagination
|
|
4
4
|
* Based on vechain-subgraph/schema.graphql
|
|
5
5
|
*/
|
|
6
|
-
import type { User_filter, User_orderBy, TeamMembership_filter, TeamMembership_orderBy, Cleanup_filter, Cleanup_orderBy, ProofOfWork_filter, ProofOfWork_orderBy, CleanupUpdate_filter, CleanupUpdate_orderBy, CleanupParticipant_filter, CleanupParticipant_orderBy, Transaction_filter, Transaction_orderBy, Notification_filter, Notification_orderBy, AddressUpdated_filter, AddressUpdated_orderBy, AppIdUpdated_filter, AppIdUpdated_orderBy, RewardsPoolUpdated_filter, RewardsPoolUpdated_orderBy, StreakSubmission_filter, StreakSubmission_orderBy, UserStreakStats_filter, UserStreakStats_orderBy, OrderDirection } from "./types";
|
|
6
|
+
import type { User_filter, User_orderBy, TeamMembership_filter, TeamMembership_orderBy, Cleanup_filter, Cleanup_orderBy, ProofOfWork_filter, ProofOfWork_orderBy, CleanupUpdate_filter, CleanupUpdate_orderBy, CleanupParticipant_filter, CleanupParticipant_orderBy, Transaction_filter, Transaction_orderBy, Notification_filter, Notification_orderBy, AddressUpdated_filter, AddressUpdated_orderBy, AppIdUpdated_filter, AppIdUpdated_orderBy, RewardsPoolUpdated_filter, RewardsPoolUpdated_orderBy, StreakSubmission_filter, StreakSubmission_orderBy, UserStreakStats_filter, UserStreakStats_orderBy, NativePassport_filter, NativePassport_orderBy, OrderDirection } from "./types";
|
|
7
7
|
/**
|
|
8
8
|
* Query a single user by ID
|
|
9
9
|
*/
|
|
10
|
-
export declare const GET_USER_QUERY = "\n query GetUser($id: Bytes!) {\n user(id: $id) {\n id\n metadata\n email\n emailVerified\n
|
|
10
|
+
export declare const GET_USER_QUERY = "\n query GetUser($id: Bytes!) {\n user(id: $id) {\n id\n metadata\n email\n emailVerified\n referralCode\n referrer\n referralCount\n registeredAt\n emailVerifiedAt\n lastProfileUpdateAt\n totalRewardsEarned\n totalRewardsClaimed\n pendingRewards\n passport {\n id\n user\n status\n reason\n documentType\n updatedAt\n blockNumber\n transactionHash\n }\n }\n }\n";
|
|
11
11
|
/**
|
|
12
12
|
* Query a single user by ID with team memberships
|
|
13
13
|
*/
|
|
14
|
-
export declare const GET_USER_WITH_TEAMS_QUERY = "\n query GetUserWithTeams($id: Bytes!) {\n user(id: $id) {\n id\n metadata\n email\n emailVerified\n
|
|
14
|
+
export declare const GET_USER_WITH_TEAMS_QUERY = "\n query GetUserWithTeams($id: Bytes!) {\n user(id: $id) {\n id\n metadata\n email\n emailVerified\n referralCode\n referrer\n referralCount\n registeredAt\n emailVerifiedAt\n lastProfileUpdateAt\n totalRewardsEarned\n totalRewardsClaimed\n pendingRewards\n passport {\n id\n user\n status\n reason\n documentType\n updatedAt\n blockNumber\n transactionHash\n }\n teamMemberships(where: { deleted: false }) {\n id\n organizer\n canEditCleanups\n canManageParticipants\n canSubmitProof\n addedAt\n lastUpdatedAt\n }\n }\n }\n";
|
|
15
15
|
/**
|
|
16
16
|
* Query multiple users with filters, ordering, and pagination
|
|
17
17
|
*/
|
|
18
|
-
export declare const GET_USERS_QUERY = "\n query GetUsers(\n $first: Int\n $skip: Int\n $where: User_filter\n $orderBy: User_orderBy\n $orderDirection: OrderDirection\n ) {\n users(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n metadata\n email\n emailVerified\n
|
|
18
|
+
export declare const GET_USERS_QUERY = "\n query GetUsers(\n $first: Int\n $skip: Int\n $where: User_filter\n $orderBy: User_orderBy\n $orderDirection: OrderDirection\n ) {\n users(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n metadata\n email\n emailVerified\n referralCode\n referrer\n referralCount\n registeredAt\n emailVerifiedAt\n lastProfileUpdateAt\n totalRewardsEarned\n totalRewardsClaimed\n pendingRewards\n passport {\n id\n user\n status\n reason\n documentType\n updatedAt\n blockNumber\n transactionHash\n }\n }\n }\n";
|
|
19
19
|
/**
|
|
20
20
|
* Query a single team membership by ID
|
|
21
21
|
*/
|
|
22
|
-
export declare const GET_TEAM_MEMBERSHIP_QUERY = "\n query GetTeamMembership($id: ID!) {\n teamMembership(id: $id) {\n id\n organizer\n member\n memberUser {\n id\n metadata\n email\n emailVerified\n
|
|
22
|
+
export declare const GET_TEAM_MEMBERSHIP_QUERY = "\n query GetTeamMembership($id: ID!) {\n teamMembership(id: $id) {\n id\n organizer\n member\n memberUser {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n }\n canEditCleanups\n canManageParticipants\n canSubmitProof\n addedAt\n lastUpdatedAt\n deleted\n deletedAt\n }\n }\n";
|
|
23
23
|
/**
|
|
24
24
|
* Query multiple team memberships with filters, ordering, and pagination
|
|
25
25
|
*/
|
|
26
|
-
export declare const GET_TEAM_MEMBERSHIPS_QUERY = "\n query GetTeamMemberships(\n $first: Int\n $skip: Int\n $where: TeamMembership_filter\n $orderBy: TeamMembership_orderBy\n $orderDirection: OrderDirection\n ) {\n teamMemberships(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n organizer\n member\n memberUser {\n id\n metadata\n email\n emailVerified\n
|
|
26
|
+
export declare const GET_TEAM_MEMBERSHIPS_QUERY = "\n query GetTeamMemberships(\n $first: Int\n $skip: Int\n $where: TeamMembership_filter\n $orderBy: TeamMembership_orderBy\n $orderDirection: OrderDirection\n ) {\n teamMemberships(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n organizer\n member\n memberUser {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n }\n canEditCleanups\n canManageParticipants\n canSubmitProof\n addedAt\n lastUpdatedAt\n deleted\n deletedAt\n }\n }\n";
|
|
27
27
|
/**
|
|
28
28
|
* Query a single cleanup by ID
|
|
29
29
|
*/
|
|
30
|
-
export declare const GET_CLEANUP_QUERY = "\n query GetCleanup($id: String!) {\n cleanup(id: $id) {\n id\n organizer\n metadata\n category\n date\n startTime\n endTime\n maxParticipants\n status\n published\n publishedAt\n unpublishedAt\n createdAt\n updatedAt\n location\n city\n country\n latitude\n longitude\n rewardAmount\n rewardsDistributed\n rewardsTotalAmount\n rewardsParticipantCount\n rewardsDistributedAt\n proofOfWorkSubmitted\n proofOfWorkSubmittedAt\n participants {\n id\n participant\n user {\n id\n metadata\n email\n emailVerified\n
|
|
30
|
+
export declare const GET_CLEANUP_QUERY = "\n query GetCleanup($id: String!) {\n cleanup(id: $id) {\n id\n organizer\n metadata\n category\n date\n startTime\n endTime\n maxParticipants\n status\n published\n publishedAt\n unpublishedAt\n createdAt\n updatedAt\n location\n city\n country\n latitude\n longitude\n rewardAmount\n rewardsDistributed\n rewardsTotalAmount\n rewardsParticipantCount\n rewardsDistributedAt\n proofOfWorkSubmitted\n proofOfWorkSubmittedAt\n participants {\n id\n participant\n user {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n }\n appliedAt\n status\n acceptedAt\n rejectedAt\n rewardEarned\n rewardEarnedAt\n }\n updates {\n id\n organizer\n metadata\n addedAt\n blockNumber\n transactionHash\n }\n proofOfWork {\n id\n ipfsHashes\n mimetypes\n submittedAt\n }\n }\n }\n";
|
|
31
31
|
/**
|
|
32
32
|
* Query multiple cleanups with filters, ordering, and pagination
|
|
33
33
|
*/
|
|
34
|
-
export declare const GET_CLEANUPS_QUERY = "\n query GetCleanups(\n $first: Int\n $skip: Int\n $where: Cleanup_filter\n $orderBy: Cleanup_orderBy\n $orderDirection: OrderDirection\n ) {\n cleanups(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n organizer\n metadata\n category\n date\n startTime\n endTime\n maxParticipants\n status\n published\n publishedAt\n unpublishedAt\n createdAt\n updatedAt\n location\n city\n country\n latitude\n longitude\n rewardAmount\n rewardsDistributed\n rewardsTotalAmount\n rewardsParticipantCount\n rewardsDistributedAt\n proofOfWorkSubmitted\n proofOfWorkSubmittedAt\n participants {\n id\n participant\n user {\n id\n metadata\n email\n emailVerified\n
|
|
34
|
+
export declare const GET_CLEANUPS_QUERY = "\n query GetCleanups(\n $first: Int\n $skip: Int\n $where: Cleanup_filter\n $orderBy: Cleanup_orderBy\n $orderDirection: OrderDirection\n ) {\n cleanups(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n organizer\n metadata\n category\n date\n startTime\n endTime\n maxParticipants\n status\n published\n publishedAt\n unpublishedAt\n createdAt\n updatedAt\n location\n city\n country\n latitude\n longitude\n rewardAmount\n rewardsDistributed\n rewardsTotalAmount\n rewardsParticipantCount\n rewardsDistributedAt\n proofOfWorkSubmitted\n proofOfWorkSubmittedAt\n participants {\n id\n participant\n user {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n }\n appliedAt\n status\n acceptedAt\n rejectedAt\n rewardEarned\n rewardEarnedAt\n }\n updates {\n id\n organizer\n metadata\n addedAt\n blockNumber\n transactionHash\n }\n proofOfWork {\n id\n ipfsHashes\n mimetypes\n submittedAt\n }\n }\n }\n";
|
|
35
35
|
/**
|
|
36
36
|
* Query a single proof of work by ID
|
|
37
37
|
*/
|
|
@@ -51,11 +51,11 @@ export declare const GET_CLEANUP_UPDATES_QUERY = "\n query GetCleanupUpdates(\n
|
|
|
51
51
|
/**
|
|
52
52
|
* Query a single cleanup participant by ID
|
|
53
53
|
*/
|
|
54
|
-
export declare const GET_CLEANUP_PARTICIPANT_QUERY = "\n query GetCleanupParticipant($id: ID!) {\n cleanupParticipant(id: $id) {\n id\n cleanup {\n id\n organizer\n metadata\n category\n date\n status\n published\n }\n participant\n user {\n id\n metadata\n email\n emailVerified\n
|
|
54
|
+
export declare const GET_CLEANUP_PARTICIPANT_QUERY = "\n query GetCleanupParticipant($id: ID!) {\n cleanupParticipant(id: $id) {\n id\n cleanup {\n id\n organizer\n metadata\n category\n date\n status\n published\n }\n participant\n user {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n totalRewardsEarned\n totalRewardsClaimed\n pendingRewards\n }\n appliedAt\n status\n acceptedAt\n rejectedAt\n rewardEarned\n rewardEarnedAt\n }\n }\n";
|
|
55
55
|
/**
|
|
56
56
|
* Query multiple cleanup participants with filters, ordering, and pagination
|
|
57
57
|
*/
|
|
58
|
-
export declare const GET_CLEANUP_PARTICIPANTS_QUERY = "\n query GetCleanupParticipants(\n $first: Int\n $skip: Int\n $where: CleanupParticipant_filter\n $orderBy: CleanupParticipant_orderBy\n $orderDirection: OrderDirection\n ) {\n cleanupParticipants(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n cleanup {\n id\n organizer\n metadata\n category\n date\n status\n published\n }\n participant\n user {\n id\n metadata\n email\n emailVerified\n
|
|
58
|
+
export declare const GET_CLEANUP_PARTICIPANTS_QUERY = "\n query GetCleanupParticipants(\n $first: Int\n $skip: Int\n $where: CleanupParticipant_filter\n $orderBy: CleanupParticipant_orderBy\n $orderDirection: OrderDirection\n ) {\n cleanupParticipants(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n cleanup {\n id\n organizer\n metadata\n category\n date\n status\n published\n }\n participant\n user {\n id\n metadata\n email\n emailVerified\n passport {\n id\n status\n reason\n }\n totalRewardsEarned\n totalRewardsClaimed\n pendingRewards\n }\n appliedAt\n status\n acceptedAt\n rejectedAt\n rewardEarned\n rewardEarnedAt\n }\n }\n";
|
|
59
59
|
/**
|
|
60
60
|
* Query a single transaction by ID
|
|
61
61
|
*/
|
|
@@ -242,4 +242,22 @@ export interface GetUserStreakStatsListParams {
|
|
|
242
242
|
orderBy?: UserStreakStats_orderBy;
|
|
243
243
|
orderDirection?: OrderDirection;
|
|
244
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Query a single native passport by ID (user address)
|
|
247
|
+
*/
|
|
248
|
+
export declare const GET_NATIVE_PASSPORT_QUERY = "\n query GetNativePassport($id: Bytes!) {\n nativePassport(id: $id) {\n id\n user\n status\n reason\n documentType\n updatedAt\n blockNumber\n transactionHash\n }\n }\n";
|
|
249
|
+
/**
|
|
250
|
+
* Query multiple native passports with filters, ordering, and pagination
|
|
251
|
+
*/
|
|
252
|
+
export declare const GET_NATIVE_PASSPORTS_QUERY = "\n query GetNativePassports(\n $first: Int\n $skip: Int\n $where: NativePassport_filter\n $orderBy: NativePassport_orderBy\n $orderDirection: OrderDirection\n ) {\n nativePassports(\n first: $first\n skip: $skip\n where: $where\n orderBy: $orderBy\n orderDirection: $orderDirection\n ) {\n id\n user\n status\n reason\n documentType\n updatedAt\n blockNumber\n transactionHash\n }\n }\n";
|
|
253
|
+
export interface GetNativePassportParams {
|
|
254
|
+
id: string;
|
|
255
|
+
}
|
|
256
|
+
export interface GetNativePassportsParams {
|
|
257
|
+
first?: number;
|
|
258
|
+
skip?: number;
|
|
259
|
+
where?: NativePassport_filter;
|
|
260
|
+
orderBy?: NativePassport_orderBy;
|
|
261
|
+
orderDirection?: OrderDirection;
|
|
262
|
+
}
|
|
245
263
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/subgraph/queries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACf,MAAM,SAAS,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/subgraph/queries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,cAAc,EACf,MAAM,SAAS,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,cAAc,0fA4B1B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,utBAqCrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,4uBAwC3B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,yBAAyB,kcA0BrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,2sBAsCtC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,iBAAiB,0qCAkE7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,i6CA8E9B,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,uBAAuB,iSAkBnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,oiBA8BpC,CAAC;AAMF;;GAEG;AACH,eAAO,MAAM,wBAAwB,yUAoBpC,CA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@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Based on vechain-subgraph/schema.graphql
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.GET_USER_STREAK_STATS_LIST_QUERY = exports.GET_USER_STREAK_STATS_QUERY = exports.GET_STREAK_SUBMISSIONS_QUERY = exports.GET_STREAK_SUBMISSION_QUERY = exports.GET_REWARDS_POOL_UPDATEDS_QUERY = exports.GET_REWARDS_POOL_UPDATED_QUERY = exports.GET_APP_ID_UPDATEDS_QUERY = exports.GET_APP_ID_UPDATED_QUERY = exports.GET_ADDRESS_UPDATEDS_QUERY = exports.GET_ADDRESS_UPDATED_QUERY = exports.GET_NOTIFICATIONS_QUERY = exports.GET_NOTIFICATION_QUERY = exports.GET_TRANSACTIONS_QUERY = exports.GET_TRANSACTION_QUERY = exports.GET_CLEANUP_PARTICIPANTS_QUERY = exports.GET_CLEANUP_PARTICIPANT_QUERY = exports.GET_CLEANUP_UPDATES_QUERY = exports.GET_CLEANUP_UPDATE_QUERY = exports.GET_PROOFS_OF_WORK_QUERY = exports.GET_PROOF_OF_WORK_QUERY = exports.GET_CLEANUPS_QUERY = exports.GET_CLEANUP_QUERY = exports.GET_TEAM_MEMBERSHIPS_QUERY = exports.GET_TEAM_MEMBERSHIP_QUERY = exports.GET_USERS_QUERY = exports.GET_USER_WITH_TEAMS_QUERY = exports.GET_USER_QUERY = void 0;
|
|
8
|
+
exports.GET_NATIVE_PASSPORTS_QUERY = exports.GET_NATIVE_PASSPORT_QUERY = exports.GET_USER_STREAK_STATS_LIST_QUERY = exports.GET_USER_STREAK_STATS_QUERY = exports.GET_STREAK_SUBMISSIONS_QUERY = exports.GET_STREAK_SUBMISSION_QUERY = exports.GET_REWARDS_POOL_UPDATEDS_QUERY = exports.GET_REWARDS_POOL_UPDATED_QUERY = exports.GET_APP_ID_UPDATEDS_QUERY = exports.GET_APP_ID_UPDATED_QUERY = exports.GET_ADDRESS_UPDATEDS_QUERY = exports.GET_ADDRESS_UPDATED_QUERY = exports.GET_NOTIFICATIONS_QUERY = exports.GET_NOTIFICATION_QUERY = exports.GET_TRANSACTIONS_QUERY = exports.GET_TRANSACTION_QUERY = exports.GET_CLEANUP_PARTICIPANTS_QUERY = exports.GET_CLEANUP_PARTICIPANT_QUERY = exports.GET_CLEANUP_UPDATES_QUERY = exports.GET_CLEANUP_UPDATE_QUERY = exports.GET_PROOFS_OF_WORK_QUERY = exports.GET_PROOF_OF_WORK_QUERY = exports.GET_CLEANUPS_QUERY = exports.GET_CLEANUP_QUERY = exports.GET_TEAM_MEMBERSHIPS_QUERY = exports.GET_TEAM_MEMBERSHIP_QUERY = exports.GET_USERS_QUERY = exports.GET_USER_WITH_TEAMS_QUERY = exports.GET_USER_QUERY = void 0;
|
|
9
9
|
// ============================================================================
|
|
10
10
|
// User Queries
|
|
11
11
|
// ============================================================================
|
|
@@ -19,17 +19,25 @@ exports.GET_USER_QUERY = `
|
|
|
19
19
|
metadata
|
|
20
20
|
email
|
|
21
21
|
emailVerified
|
|
22
|
-
kycStatus
|
|
23
22
|
referralCode
|
|
24
23
|
referrer
|
|
25
24
|
referralCount
|
|
26
|
-
isOrganizer
|
|
27
25
|
registeredAt
|
|
28
26
|
emailVerifiedAt
|
|
29
27
|
lastProfileUpdateAt
|
|
30
28
|
totalRewardsEarned
|
|
31
29
|
totalRewardsClaimed
|
|
32
30
|
pendingRewards
|
|
31
|
+
passport {
|
|
32
|
+
id
|
|
33
|
+
user
|
|
34
|
+
status
|
|
35
|
+
reason
|
|
36
|
+
documentType
|
|
37
|
+
updatedAt
|
|
38
|
+
blockNumber
|
|
39
|
+
transactionHash
|
|
40
|
+
}
|
|
33
41
|
}
|
|
34
42
|
}
|
|
35
43
|
`;
|
|
@@ -43,17 +51,25 @@ exports.GET_USER_WITH_TEAMS_QUERY = `
|
|
|
43
51
|
metadata
|
|
44
52
|
email
|
|
45
53
|
emailVerified
|
|
46
|
-
kycStatus
|
|
47
54
|
referralCode
|
|
48
55
|
referrer
|
|
49
56
|
referralCount
|
|
50
|
-
isOrganizer
|
|
51
57
|
registeredAt
|
|
52
58
|
emailVerifiedAt
|
|
53
59
|
lastProfileUpdateAt
|
|
54
60
|
totalRewardsEarned
|
|
55
61
|
totalRewardsClaimed
|
|
56
62
|
pendingRewards
|
|
63
|
+
passport {
|
|
64
|
+
id
|
|
65
|
+
user
|
|
66
|
+
status
|
|
67
|
+
reason
|
|
68
|
+
documentType
|
|
69
|
+
updatedAt
|
|
70
|
+
blockNumber
|
|
71
|
+
transactionHash
|
|
72
|
+
}
|
|
57
73
|
teamMemberships(where: { deleted: false }) {
|
|
58
74
|
id
|
|
59
75
|
organizer
|
|
@@ -88,17 +104,25 @@ exports.GET_USERS_QUERY = `
|
|
|
88
104
|
metadata
|
|
89
105
|
email
|
|
90
106
|
emailVerified
|
|
91
|
-
kycStatus
|
|
92
107
|
referralCode
|
|
93
108
|
referrer
|
|
94
109
|
referralCount
|
|
95
|
-
isOrganizer
|
|
96
110
|
registeredAt
|
|
97
111
|
emailVerifiedAt
|
|
98
112
|
lastProfileUpdateAt
|
|
99
113
|
totalRewardsEarned
|
|
100
114
|
totalRewardsClaimed
|
|
101
115
|
pendingRewards
|
|
116
|
+
passport {
|
|
117
|
+
id
|
|
118
|
+
user
|
|
119
|
+
status
|
|
120
|
+
reason
|
|
121
|
+
documentType
|
|
122
|
+
updatedAt
|
|
123
|
+
blockNumber
|
|
124
|
+
transactionHash
|
|
125
|
+
}
|
|
102
126
|
}
|
|
103
127
|
}
|
|
104
128
|
`;
|
|
@@ -119,8 +143,11 @@ exports.GET_TEAM_MEMBERSHIP_QUERY = `
|
|
|
119
143
|
metadata
|
|
120
144
|
email
|
|
121
145
|
emailVerified
|
|
122
|
-
|
|
123
|
-
|
|
146
|
+
passport {
|
|
147
|
+
id
|
|
148
|
+
status
|
|
149
|
+
reason
|
|
150
|
+
}
|
|
124
151
|
}
|
|
125
152
|
canEditCleanups
|
|
126
153
|
canManageParticipants
|
|
@@ -158,8 +185,11 @@ exports.GET_TEAM_MEMBERSHIPS_QUERY = `
|
|
|
158
185
|
metadata
|
|
159
186
|
email
|
|
160
187
|
emailVerified
|
|
161
|
-
|
|
162
|
-
|
|
188
|
+
passport {
|
|
189
|
+
id
|
|
190
|
+
status
|
|
191
|
+
reason
|
|
192
|
+
}
|
|
163
193
|
}
|
|
164
194
|
canEditCleanups
|
|
165
195
|
canManageParticipants
|
|
@@ -214,8 +244,11 @@ exports.GET_CLEANUP_QUERY = `
|
|
|
214
244
|
metadata
|
|
215
245
|
email
|
|
216
246
|
emailVerified
|
|
217
|
-
|
|
218
|
-
|
|
247
|
+
passport {
|
|
248
|
+
id
|
|
249
|
+
status
|
|
250
|
+
reason
|
|
251
|
+
}
|
|
219
252
|
}
|
|
220
253
|
appliedAt
|
|
221
254
|
status
|
|
@@ -293,8 +326,11 @@ exports.GET_CLEANUPS_QUERY = `
|
|
|
293
326
|
metadata
|
|
294
327
|
email
|
|
295
328
|
emailVerified
|
|
296
|
-
|
|
297
|
-
|
|
329
|
+
passport {
|
|
330
|
+
id
|
|
331
|
+
status
|
|
332
|
+
reason
|
|
333
|
+
}
|
|
298
334
|
}
|
|
299
335
|
appliedAt
|
|
300
336
|
status
|
|
@@ -467,8 +503,11 @@ exports.GET_CLEANUP_PARTICIPANT_QUERY = `
|
|
|
467
503
|
metadata
|
|
468
504
|
email
|
|
469
505
|
emailVerified
|
|
470
|
-
|
|
471
|
-
|
|
506
|
+
passport {
|
|
507
|
+
id
|
|
508
|
+
status
|
|
509
|
+
reason
|
|
510
|
+
}
|
|
472
511
|
totalRewardsEarned
|
|
473
512
|
totalRewardsClaimed
|
|
474
513
|
pendingRewards
|
|
@@ -516,8 +555,11 @@ exports.GET_CLEANUP_PARTICIPANTS_QUERY = `
|
|
|
516
555
|
metadata
|
|
517
556
|
email
|
|
518
557
|
emailVerified
|
|
519
|
-
|
|
520
|
-
|
|
558
|
+
passport {
|
|
559
|
+
id
|
|
560
|
+
status
|
|
561
|
+
reason
|
|
562
|
+
}
|
|
521
563
|
totalRewardsEarned
|
|
522
564
|
totalRewardsClaimed
|
|
523
565
|
pendingRewards
|
|
@@ -886,4 +928,53 @@ exports.GET_USER_STREAK_STATS_LIST_QUERY = `
|
|
|
886
928
|
}
|
|
887
929
|
}
|
|
888
930
|
`;
|
|
931
|
+
// ============================================================================
|
|
932
|
+
// NativePassport Queries
|
|
933
|
+
// ============================================================================
|
|
934
|
+
/**
|
|
935
|
+
* Query a single native passport by ID (user address)
|
|
936
|
+
*/
|
|
937
|
+
exports.GET_NATIVE_PASSPORT_QUERY = `
|
|
938
|
+
query GetNativePassport($id: Bytes!) {
|
|
939
|
+
nativePassport(id: $id) {
|
|
940
|
+
id
|
|
941
|
+
user
|
|
942
|
+
status
|
|
943
|
+
reason
|
|
944
|
+
documentType
|
|
945
|
+
updatedAt
|
|
946
|
+
blockNumber
|
|
947
|
+
transactionHash
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
`;
|
|
951
|
+
/**
|
|
952
|
+
* Query multiple native passports with filters, ordering, and pagination
|
|
953
|
+
*/
|
|
954
|
+
exports.GET_NATIVE_PASSPORTS_QUERY = `
|
|
955
|
+
query GetNativePassports(
|
|
956
|
+
$first: Int
|
|
957
|
+
$skip: Int
|
|
958
|
+
$where: NativePassport_filter
|
|
959
|
+
$orderBy: NativePassport_orderBy
|
|
960
|
+
$orderDirection: OrderDirection
|
|
961
|
+
) {
|
|
962
|
+
nativePassports(
|
|
963
|
+
first: $first
|
|
964
|
+
skip: $skip
|
|
965
|
+
where: $where
|
|
966
|
+
orderBy: $orderBy
|
|
967
|
+
orderDirection: $orderDirection
|
|
968
|
+
) {
|
|
969
|
+
id
|
|
970
|
+
user
|
|
971
|
+
status
|
|
972
|
+
reason
|
|
973
|
+
documentType
|
|
974
|
+
updatedAt
|
|
975
|
+
blockNumber
|
|
976
|
+
transactionHash
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
`;
|
|
889
980
|
//# sourceMappingURL=queries.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/subgraph/queries.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;
|
|
1
|
+
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/subgraph/queries.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAkCH,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E;;GAEG;AACU,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4B7B,CAAC;AAEF;;GAEG;AACU,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxC,CAAC;AAEF;;GAEG;AACU,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwC9B,CAAC;AAEF,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;GAEG;AACU,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BxC,CAAC;AAEF;;GAEG;AACU,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCzC,CAAC;AAEF,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E;;GAEG;AACU,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEhC,CAAC;AAEF;;GAEG;AACU,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EjC,CAAC;AAEF,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E;;GAEG;AACU,QAAA,uBAAuB,GAAG;;;;;;;;;;;;;;;;;;CAkBtC,C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;;;;;CAWvC,CAAC;AAEF;;GAEG;AACU,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuBxC,CAAC;AAEF,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E;;GAEG;AACU,QAAA,8BAA8B,GAAG;;;;;;;;;;;CAW7C,CAAC;AAEF;;GAEG;AACU,QAAA,+BAA+B,GAAG;;;;;;;;;;;;;;;;;;;;;;;CAuB9C,CAAC;AAEF,+EAA+E;AAC/E,2BAA2B;AAC3B,+EAA+E;AAE/E;;GAEG;AACU,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;;;;;;CAmB1C,CAAC;AAEF;;GAEG;AACU,QAAA,4BAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+B3C,CAAC;AAEF,+EAA+E;AAC/E,0BAA0B;AAC1B,+EAA+E;AAE/E;;GAEG;AACU,QAAA,2BAA2B,GAAG;;;;;;;;;;;;;;CAc1C,CAAC;AAEF;;GAEG;AACU,QAAA,gCAAgC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CA0B/C,CAAC;AAkKF,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;GAEG;AACU,QAAA,yBAAyB,GAAG;;;;;;;;;;;;;CAaxC,CAAC;AAEF;;GAEG;AACU,QAAA,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyBzC,CAAC"}
|
package/dist/subgraph/types.d.ts
CHANGED
|
@@ -7,14 +7,13 @@ export interface User {
|
|
|
7
7
|
metadata: string | null;
|
|
8
8
|
email: string | null;
|
|
9
9
|
emailVerified: boolean;
|
|
10
|
-
kycStatus: number;
|
|
11
10
|
referralCode: string | null;
|
|
12
11
|
referrer: string | null;
|
|
13
12
|
referralCount: string;
|
|
14
|
-
isOrganizer: boolean;
|
|
15
13
|
registeredAt: number;
|
|
16
14
|
emailVerifiedAt: number | null;
|
|
17
15
|
lastProfileUpdateAt: number | null;
|
|
16
|
+
passport?: NativePassport | null;
|
|
18
17
|
teamMemberships?: TeamMembership[];
|
|
19
18
|
totalRewardsEarned: string;
|
|
20
19
|
totalRewardsClaimed: string;
|
|
@@ -122,7 +121,7 @@ export interface AddressUpdated {
|
|
|
122
121
|
oldAddress: string;
|
|
123
122
|
newAddress: string;
|
|
124
123
|
blockNumber: number;
|
|
125
|
-
|
|
124
|
+
blockTimestamp: number;
|
|
126
125
|
transactionHash: string;
|
|
127
126
|
}
|
|
128
127
|
export interface AppIdUpdated {
|
|
@@ -130,7 +129,7 @@ export interface AppIdUpdated {
|
|
|
130
129
|
oldAppId: string;
|
|
131
130
|
newAppId: string;
|
|
132
131
|
blockNumber: number;
|
|
133
|
-
|
|
132
|
+
blockTimestamp: number;
|
|
134
133
|
transactionHash: string;
|
|
135
134
|
}
|
|
136
135
|
export interface RewardsPoolUpdated {
|
|
@@ -138,7 +137,7 @@ export interface RewardsPoolUpdated {
|
|
|
138
137
|
oldPool: string;
|
|
139
138
|
newPool: string;
|
|
140
139
|
blockNumber: number;
|
|
141
|
-
|
|
140
|
+
blockTimestamp: number;
|
|
142
141
|
transactionHash: string;
|
|
143
142
|
}
|
|
144
143
|
export interface StreakSubmission {
|
|
@@ -168,6 +167,16 @@ export interface UserStreakStats {
|
|
|
168
167
|
totalAmount: string;
|
|
169
168
|
lastSubmissionAt: number | null;
|
|
170
169
|
}
|
|
170
|
+
export interface NativePassport {
|
|
171
|
+
id: string;
|
|
172
|
+
user: string;
|
|
173
|
+
status: number;
|
|
174
|
+
reason: string | null;
|
|
175
|
+
documentType: number | null;
|
|
176
|
+
updatedAt: number;
|
|
177
|
+
blockNumber: number;
|
|
178
|
+
transactionHash: string;
|
|
179
|
+
}
|
|
171
180
|
export type OrderDirection = "asc" | "desc";
|
|
172
181
|
export interface User_filter {
|
|
173
182
|
id?: string | null;
|
|
@@ -218,14 +227,6 @@ export interface User_filter {
|
|
|
218
227
|
email_not_ends_with_nocase?: string | null;
|
|
219
228
|
emailVerified?: boolean | null;
|
|
220
229
|
emailVerified_not?: boolean | null;
|
|
221
|
-
kycStatus?: number | null;
|
|
222
|
-
kycStatus_not?: number | null;
|
|
223
|
-
kycStatus_gt?: number | null;
|
|
224
|
-
kycStatus_lt?: number | null;
|
|
225
|
-
kycStatus_gte?: number | null;
|
|
226
|
-
kycStatus_lte?: number | null;
|
|
227
|
-
kycStatus_in?: number[];
|
|
228
|
-
kycStatus_not_in?: number[];
|
|
229
230
|
referralCode?: string | null;
|
|
230
231
|
referralCode_not?: string | null;
|
|
231
232
|
referralCode_gt?: string | null;
|
|
@@ -250,8 +251,6 @@ export interface User_filter {
|
|
|
250
251
|
referrer_not_in?: string[];
|
|
251
252
|
referrer_contains?: string | null;
|
|
252
253
|
referrer_not_contains?: string | null;
|
|
253
|
-
isOrganizer?: boolean | null;
|
|
254
|
-
isOrganizer_not?: boolean | null;
|
|
255
254
|
registeredAt?: number | null;
|
|
256
255
|
registeredAt_not?: string | null;
|
|
257
256
|
registeredAt_gt?: string | null;
|
|
@@ -309,7 +308,7 @@ export interface User_filter {
|
|
|
309
308
|
referralCount_in?: string[];
|
|
310
309
|
referralCount_not_in?: string[];
|
|
311
310
|
}
|
|
312
|
-
export type User_orderBy = "id" | "metadata" | "email" | "emailVerified" | "
|
|
311
|
+
export type User_orderBy = "id" | "metadata" | "email" | "emailVerified" | "referralCode" | "referrer" | "referralCount" | "registeredAt" | "emailVerifiedAt" | "lastProfileUpdateAt" | "totalRewardsEarned" | "totalRewardsClaimed" | "pendingRewards";
|
|
313
312
|
export interface TeamMembership_filter {
|
|
314
313
|
id?: string | null;
|
|
315
314
|
id_not?: string | null;
|
|
@@ -1374,4 +1373,79 @@ export interface UserStreakStats_filter {
|
|
|
1374
1373
|
lastSubmissionAt_not_in?: string[];
|
|
1375
1374
|
}
|
|
1376
1375
|
export type UserStreakStats_orderBy = "id" | "user" | "streakerCode" | "totalSubmissions" | "approvedSubmissions" | "rejectedSubmissions" | "pendingSubmissions" | "totalAmount" | "lastSubmissionAt";
|
|
1376
|
+
export interface NativePassport_filter {
|
|
1377
|
+
id?: string | null;
|
|
1378
|
+
id_not?: string | null;
|
|
1379
|
+
id_gt?: string | null;
|
|
1380
|
+
id_lt?: string | null;
|
|
1381
|
+
id_gte?: string | null;
|
|
1382
|
+
id_lte?: string | null;
|
|
1383
|
+
id_in?: string[];
|
|
1384
|
+
id_not_in?: string[];
|
|
1385
|
+
id_contains?: string | null;
|
|
1386
|
+
id_not_contains?: string | null;
|
|
1387
|
+
user?: string | null;
|
|
1388
|
+
user_not?: string | null;
|
|
1389
|
+
user_in?: string[];
|
|
1390
|
+
user_not_in?: string[];
|
|
1391
|
+
user_contains?: string | null;
|
|
1392
|
+
user_not_contains?: string | null;
|
|
1393
|
+
status?: number | null;
|
|
1394
|
+
status_not?: number | null;
|
|
1395
|
+
status_gt?: number | null;
|
|
1396
|
+
status_lt?: number | null;
|
|
1397
|
+
status_gte?: number | null;
|
|
1398
|
+
status_lte?: number | null;
|
|
1399
|
+
status_in?: number[];
|
|
1400
|
+
status_not_in?: number[];
|
|
1401
|
+
reason?: string | null;
|
|
1402
|
+
reason_not?: string | null;
|
|
1403
|
+
reason_gt?: string | null;
|
|
1404
|
+
reason_lt?: string | null;
|
|
1405
|
+
reason_gte?: string | null;
|
|
1406
|
+
reason_lte?: string | null;
|
|
1407
|
+
reason_in?: string[];
|
|
1408
|
+
reason_not_in?: string[];
|
|
1409
|
+
reason_contains?: string | null;
|
|
1410
|
+
reason_not_contains?: string | null;
|
|
1411
|
+
reason_starts_with?: string | null;
|
|
1412
|
+
reason_starts_with_nocase?: string | null;
|
|
1413
|
+
reason_not_starts_with?: string | null;
|
|
1414
|
+
reason_not_starts_with_nocase?: string | null;
|
|
1415
|
+
reason_ends_with?: string | null;
|
|
1416
|
+
reason_ends_with_nocase?: string | null;
|
|
1417
|
+
reason_not_ends_with?: string | null;
|
|
1418
|
+
reason_not_ends_with_nocase?: string | null;
|
|
1419
|
+
documentType?: number | null;
|
|
1420
|
+
documentType_not?: number | null;
|
|
1421
|
+
documentType_gt?: number | null;
|
|
1422
|
+
documentType_lt?: number | null;
|
|
1423
|
+
documentType_gte?: number | null;
|
|
1424
|
+
documentType_lte?: number | null;
|
|
1425
|
+
documentType_in?: number[];
|
|
1426
|
+
documentType_not_in?: number[];
|
|
1427
|
+
updatedAt?: number | null;
|
|
1428
|
+
updatedAt_not?: string | null;
|
|
1429
|
+
updatedAt_gt?: string | null;
|
|
1430
|
+
updatedAt_lt?: string | null;
|
|
1431
|
+
updatedAt_gte?: string | null;
|
|
1432
|
+
updatedAt_lte?: string | null;
|
|
1433
|
+
updatedAt_in?: string[];
|
|
1434
|
+
updatedAt_not_in?: string[];
|
|
1435
|
+
blockNumber?: number | null;
|
|
1436
|
+
blockNumber_not?: number | null;
|
|
1437
|
+
blockNumber_gt?: number | null;
|
|
1438
|
+
blockNumber_lt?: number | null;
|
|
1439
|
+
blockNumber_gte?: number | null;
|
|
1440
|
+
blockNumber_lte?: number | null;
|
|
1441
|
+
blockNumber_in?: number[];
|
|
1442
|
+
blockNumber_not_in?: number[];
|
|
1443
|
+
transactionHash?: string | null;
|
|
1444
|
+
transactionHash_not?: string | null;
|
|
1445
|
+
transactionHash_in?: string[];
|
|
1446
|
+
transactionHash_not_in?: string[];
|
|
1447
|
+
transactionHash_contains?: string | null;
|
|
1448
|
+
transactionHash_not_contains?: string | null;
|
|
1449
|
+
}
|
|
1450
|
+
export type NativePassport_orderBy = "id" | "user" | "status" | "reason" | "documentType" | "updatedAt" | "blockNumber" | "transactionHash";
|
|
1377
1451
|
//# sourceMappingURL=types.d.ts.map
|