@ziggs-ai/contracts 0.29.1 → 0.30.0
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.
|
@@ -92,7 +92,7 @@ export type AgreementRead = {
|
|
|
92
92
|
money: AgreementMoney;
|
|
93
93
|
proposal: AgreementProposal;
|
|
94
94
|
status: "draft" | "open" | "active" | "fulfilled" | "cancelled" | "refunded";
|
|
95
|
-
engagementKind: "hire" | "service" | "link";
|
|
95
|
+
engagementKind: "hire" | "service" | "link" | "membership";
|
|
96
96
|
formedBy: "principal" | "agent";
|
|
97
97
|
orgId: string | null;
|
|
98
98
|
userOutcomeSatisfaction: "positive" | "negative" | null;
|
package/dist/vocabulary.d.ts
CHANGED
|
@@ -88,11 +88,16 @@ export interface PartySideRef {
|
|
|
88
88
|
export declare function partySideIds(side: PartySideRef | null | undefined): string[];
|
|
89
89
|
/** The agents that acted on any side, deduped. */
|
|
90
90
|
export declare function partyActorIds(parties: Partial<Record<AgreementPartySideName, PartySideRef | null>> | null | undefined): string[];
|
|
91
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* What kind of agreement this paper is. A link is reach, not a hire. A
|
|
93
|
+
* membership is a workspace and one of its people: formed by accepting the
|
|
94
|
+
* invite, ended by leaving, free, and the paper teammates' tasks run under.
|
|
95
|
+
*/
|
|
92
96
|
export declare const AGREEMENT_ENGAGEMENT_KIND: {
|
|
93
97
|
readonly HIRE: "hire";
|
|
94
98
|
readonly SERVICE: "service";
|
|
95
99
|
readonly LINK: "link";
|
|
100
|
+
readonly MEMBERSHIP: "membership";
|
|
96
101
|
};
|
|
97
102
|
export type AgreementEngagementKind = (typeof AGREEMENT_ENGAGEMENT_KIND)[keyof typeof AGREEMENT_ENGAGEMENT_KIND];
|
|
98
103
|
/**
|
package/dist/vocabulary.js
CHANGED
|
@@ -96,11 +96,16 @@ function partyActorIds(parties) {
|
|
|
96
96
|
...new Set(exports.AGREEMENT_PARTY_SIDES.map((name) => p[name]?.actor).filter((id) => !!id)),
|
|
97
97
|
];
|
|
98
98
|
}
|
|
99
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* What kind of agreement this paper is. A link is reach, not a hire. A
|
|
101
|
+
* membership is a workspace and one of its people: formed by accepting the
|
|
102
|
+
* invite, ended by leaving, free, and the paper teammates' tasks run under.
|
|
103
|
+
*/
|
|
100
104
|
exports.AGREEMENT_ENGAGEMENT_KIND = {
|
|
101
105
|
HIRE: 'hire',
|
|
102
106
|
SERVICE: 'service',
|
|
103
107
|
LINK: 'link',
|
|
108
|
+
MEMBERSHIP: 'membership',
|
|
104
109
|
};
|
|
105
110
|
/**
|
|
106
111
|
* A seller's standing offer: the payer slot is a broadcast, and the paper
|
package/package.json
CHANGED